minimize button click event?

B

Brad Melendy

Hello,
I'm looking for an onclick event for the minimize button but can't seem to
find it within the form properties. I'd like to add code to hide my form
when it is minimized and suspect there is an onclick event I can use if only
I knew its name? Thanks for any help.

.....Brad
 
A

Ahmed

Take a look at the resize event. You can use the following code:

If Me.WindowState = FormWindowState.Minimized Then
'Do something
End If

Cheers

Ahmed
 
B

Brad Melendy

Thanks Ahmed, that worked like a charm!

Ahmed said:
Take a look at the resize event. You can use the following code:

If Me.WindowState = FormWindowState.Minimized Then
'Do something
End If

Cheers

Ahmed
 

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