How to capture Maximize Event for Form Window

S

simchajoy2000

Hi,

I know how to find out what the window state of a vb.net form is
programmatically, but I want to be able to capture the event of
maximizing/minimizing a window when it happens. Is there any way to
do this?

Joy
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) scripsit:
I know how to find out what the window state of a vb.net form is
programmatically, but I want to be able to capture the event of
maximizing/minimizing a window when it happens. Is there any way to
do this?

Add a handler to the form's 'Resize' event and check its 'WindowState'
property.
 

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

Top