Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 :(

What I don't know keeps me excited...
  • *Gurus*
Posted

You want the ClientSize property, if you need to set the size of the client area of the form:

 

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...