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

how to MAXIMIZE window programatically?


How do I write code that will maximize a window programatically....
(window is not a mdi child).

Me.Size = Me.maxsize works, but I don't want to set the max size.  I want max size to be whatever the desktop can afford, hence I do not set this property.

0
kamleshmistry
Asked:
kamleshmistry
3 Solutions
 
kamleshmistryAuthor Commented:
I forgot,

  I am using vb.net....

   could have put this question in that forum...    o.k.  this is not bad place for it either....
0
 
Mikal613Commented:
Popup.WindowState = FormWindowState.Maximized
0
 
Mikal613Commented:
frm.WindowState = FormWindowState.Maximized
0
 
tusharashahCommented:
Use this:

Form1.ActiveForm.WindowState = FormWindowState.Maximized

-tushar
0
 
JustinDWrightCommented:
Me.WindowState = FormWindowState.Maximized
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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