PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Form Size

Reply

Form Size

 
Thread Tools Rate Thread
Old 14-03-2006, 07:55 PM   #1
Cerebrus
Guest
 
Posts: n/a
Default Re: Form Size


Hi,

Why not simply set the Form WindowState property to "Maximized" ? It
would then cover the full screen whatever your screen resolution is.

Regards,

Cerebrus.

  Reply With Quote
Old 14-03-2006, 08:24 PM   #2
Armin Zingler
Guest
 
Posts: n/a
Default Re: Form Size

<Buc> schrieb im Newsbeitrag news:OmNTjG6RGHA.1608@TK2MSFTNGP09.phx.gbl...
> Maximized doesn't stop my controls from running off the side of the screen
> in 800*600 mode
> Buc
>
> <Buc> wrote in message news:%233VAK$5RGHA.1948@TK2MSFTNGP09.phx.gbl...
>>I created a form using 1024*768 res. Is there a way in vb.net to tell the
>>frm to 'adjust' it's size for say 800*600, or is it supposed to do this
>>automatically? I run the form on a couple of 800*600 res screens and part
>>of the form is hidden.
>> I remember a resize.ocx for vb6 forms, but I was hoping vb.net would have
>> a built in way of doing it.
>> Thanks
>> BUC



Have a look at the Anchor and Dock properties.


Armin

  Reply With Quote
Old 14-03-2006, 08:45 PM   #3
Guest
 
Posts: n/a
Default Form Size

I created a form using 1024*768 res. Is there a way in vb.net to tell the
frm to 'adjust' it's size for say 800*600, or is it supposed to do this
automatically? I run the form on a couple of 800*600 res screens and part of
the form is hidden.
I remember a resize.ocx for vb6 forms, but I was hoping vb.net would have a
built in way of doing it.
Thanks
BUC


  Reply With Quote
Old 14-03-2006, 08:58 PM   #4
Guest
 
Posts: n/a
Default Re: Form Size

Maximized doesn't stop my controls from running off the side of the screen
in 800*600 mode
Buc

<Buc> wrote in message news:%233VAK$5RGHA.1948@TK2MSFTNGP09.phx.gbl...
>I created a form using 1024*768 res. Is there a way in vb.net to tell the
>frm to 'adjust' it's size for say 800*600, or is it supposed to do this
>automatically? I run the form on a couple of 800*600 res screens and part
>of the form is hidden.
> I remember a resize.ocx for vb6 forms, but I was hoping vb.net would have
> a built in way of doing it.
> Thanks
> BUC
>
>



  Reply With Quote
Old 15-03-2006, 12:53 PM   #5
Phill W.
Guest
 
Posts: n/a
Default Re: Form Size


<Buc> wrote in message news:%233VAK$5RGHA.1948@TK2MSFTNGP09.phx.gbl...
>I created a form using 1024*768 res. Is there a way in vb.net to tell the
>frm to 'adjust' it's size for say 800*600, or is it supposed to do this
>automatically?


Always design for the smallest monitor resolution you intend to support.
Use the Anchor and Dock properties on each control to take advantage
of "larger" screens. If you're going down the inherited Form route, I've
found overriding the OnLayout methods more reliable for resizing and
repositioning controls.

HTH,
Phill W.


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off