How to check Maximize button click event of a Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size
 
Hi Sachin,

Well, you could handle the SizeChanged event and check
if(WindowState == FormWindowState.Maximized)
{
// user or something maximized the window
}

Happy coding!
Morten Wennevik [C# MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top