Form height and Width properties probs

sethindeed

Centurion
Joined
Dec 31, 1969
Messages
118
Location
Montreal Canada
When I set them at runtime, I never get the expected results ( too small often )
I remember in VB6, there was this property called scaleheight and width that is now gone...

Me.Height = x
Me.Width = y

...but it simply does not represent what I asked for :(
 
You want the ClientSize property, if you need to set the size of the client area of the form:

Visual Basic:
ClientSize = New Size(200, 200)

You can also check this (ClientSize.Width etc) to get the size of the working area of the form, which can be useful sometimes.
 
Back
Top