FormBorderStyle = None, resize window?

  • Thread starter Thread starter Kristofer Gafvert
  • Start date Start date
K

Kristofer Gafvert

What would be the best way to resize a window (form) when FormBorderStyle is
set to None?

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003
 
What would be the best way to resize a window (form) when FormBorderStyle is
set to None?

Change the border style to a resizable one ;-)

Do you want to resize it programmatically or let the user do it?



Mattias
 
Let the user do it.

No, i cannot change it to a resizable one. I need to take away all space
that i do not use, so the window form is as small as possible.

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003
 
To get the affect you want, in the form property window:

FormBorderStyle = Sizable
ControlBox = False
Text = (empty)

Chris R.
 
Thanks!

That was alot easier... :-)

I never realized that if the Text property was empty, the title bar was
removed.

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003
 
Back
Top