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

Re: Resize a form based on content size by Herfried

Herfried
Thu Feb 17 17:46:39 CST 2005

Evan,

"Evan Stone" <evan_stone_n0spaam@intuit_n0spaam.com> schrieb:
> 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)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>