Form Resize

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I want to resize the Form and its controls when the screen resolution
changes .
If the screen resolution is set to 800x600 i cannot view all the controls of
the form.How do I resize my form to fit whatever be the resolution of the
screen.

Thanks
 
Hi,

There are two ways to get around this problem.
One is to write you own code during the Resize event
and resize the form and all the controls yourself. The
other is to find a control that will try to do this automatically
for you.There are many third party controls available on the web
but I'm not too sure about the authenticity of them.

As for the Resize event,you can read up more on it on the
following MSDN link which also has an example implementing
the same.

[Control.Resize Event]
http://msdn.microsoft.com/library/d...systemwindowsformscontrolclassresizetopic.asp

HTH

Mona
 
MVB said:
Hi
I want to resize the Form and its controls when the screen resolution
changes .
If the screen resolution is set to 800x600 i cannot view all the controls of
the form.How do I resize my form to fit whatever be the resolution of the
screen.

If you design your forms using panels, and by consistently setting the
'dock' property on controls then
your life will be easier than specifying absolute sizes!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskcreatingintricateuserinterfacewithwindowsapplicationobjects.asp

Ben
 
Back
Top