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

How to run my application in maximized window state

Ajay Bhalala
100+
P: 119
How can I do this?

While running the application, the form should be in maximized state in vb.net (Visual Studio 2008)
Nov 13 '14 #1

✓ answered by Frinavale

In the loaded event for your form set the Form's FormBorderStyle Property to none to hide the frame around the window and set the WindowState Property to Maximized. See the documentation links for more information about these properties.

For example:
Expand|Select|Wrap|Line Numbers
  1. Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
  2. Me.WindowState = FormWindowState.Maximized

Share this Question
Share on Google+
2 Replies


Frinavale
Expert Mod 5K+
P: 9,731
In the loaded event for your form set the Form's FormBorderStyle Property to none to hide the frame around the window and set the WindowState Property to Maximized. See the documentation links for more information about these properties.

For example:
Expand|Select|Wrap|Line Numbers
  1. Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
  2. Me.WindowState = FormWindowState.Maximized
Nov 13 '14 #2

Ajay Bhalala
100+
P: 119
Than you so much for the help. It works. and I have get more information about the vb.net
Nov 14 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.