By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,693 Members | 1,557 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,693 IT Pros & Developers. It's quick & easy.

How do I resize a form

P: n/a
I would like to resize a form to it's maximum size, as if I hit the
maximize button after it loads. How would I do this programatically in
VB.NET?

Thanks,
Dustin
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Add this to your Form Load event

Me.WindowState =FormWindowState.Maximized

Greg

"Dustin" <du****@davisvillage.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I would like to resize a form to it's maximum size, as if I hit the
maximize button after it loads. How would I do this programatically in
VB.NET?

Thanks,
Dustin

Nov 21 '05 #2

P: n/a
Thanks! In the meantime I found something close:

Me.Location = New Point(0, 0)
Me.Size = System.Windows.Forms.Screen.PrimaryScreen.WorkingA rea.Size
Greg Burns wrote:
Add this to your Form Load event

Me.WindowState =FormWindowState.Maximized

Greg

"Dustin" <du****@davisvillage.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I would like to resize a form to it's maximum size, as if I hit the
maximize button after it loads. How would I do this programatically in
VB.NET?

Thanks,
Dustin


Nov 21 '05 #3

P: n/a
Cool. I like that just as much.

Greg

"Dustin" <du****@davisvillage.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Thanks! In the meantime I found something close:

Me.Location = New Point(0, 0)
Me.Size = System.Windows.Forms.Screen.PrimaryScreen.WorkingA rea.Size
Greg Burns wrote:
Add this to your Form Load event

Me.WindowState =FormWindowState.Maximized

Greg

"Dustin" <du****@davisvillage.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I would like to resize a form to it's maximum size, as if I hit the
maximize button after it loads. How would I do this programatically in
VB.NET?

Thanks,
Dustin



Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.