Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


how to MAXIMIZE window programatically?

Posted on 2004-10-21
Medium Priority
Last Modified: 2008-02-07

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.

Question by:kamleshmistry
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 12374447
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....
LVL 48

Expert Comment

ID: 12374570
Popup.WindowState = FormWindowState.Maximized
LVL 48

Accepted Solution

Mikal613 earned 1600 total points
ID: 12374582
frm.WindowState = FormWindowState.Maximized
LVL 18

Assisted Solution

tusharashah earned 180 total points
ID: 12374603
Use this:

Form1.ActiveForm.WindowState = FormWindowState.Maximized


Assisted Solution

JustinDWright earned 180 total points
ID: 12375205
Me.WindowState = FormWindowState.Maximized

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question