Go Premium for a chance to win a PS4. Enter to Win

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 503
  • Last Modified:

VB.net Windows Form - automatically fill screen


I have a Windows form with a WebBrowser control. What VB.net code would I use to automatically size the form to fill the screen. I want to mimic a web browser.

Murray Brown
Murray Brown
1 Solution
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:

If you mean you want to maximize the screen by default. There is a property you can set in design mode.

Or you can add below line on Form.Load event-
Me.Windowstate = FormWindowState.Maximized
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now