Resize a form based on content size

E

Evan Stone

Is it possible to resize a form based on the size of its contents? In
VB6- we had ScaleWidth & ScaleHeight properties, with which one could
get/set the form size to fit exactly.

Is there an analog in the .NET Framework?

Thanks!

-Evan
 
H

Herfried K. Wagner [MVP]

Evan,

Evan Stone said:
Is it possible to resize a form based on the size of its contents? In
VB6- we had ScaleWidth & ScaleHeight properties, with which one could
get/set the form size to fit exactly.

Is there an analog in the .NET Framework?

\\\
Me.ClientSize = New Size(100, 100)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top