|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
getting screen size of the computer vb6.0
how can i get the screen size of the computer
so that i can adjust the form size according to that |
|
#2
|
||||
|
||||
|
<bump> these were moved here from Apache forum today
|
|
#3
|
|||
|
|||
|
I think that you want something like this:
FormX.Width = Screen.Width |
|
#4
|
|||
|
|||
|
re: sizing the window
If you want your form to resize to the size of the screen then you have a couple of options:
(1) You can do as nbejoys suggests and insert the following code into your form (probably in the Code:
Form_Load() Code:
Private Sub Form_Load()
' Resize form to the screen size
Me.Height = Screen.Height
Me.Width = Screen.With
End Sub
This will resize the form to the screen size to start off with - but it won't resize your controls dynamically. Alternatively... (2) You can tell the form to maximize using Code:
Me.WindowState = vbMaximized |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > getting screen size of the computer vb6.0 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|