minimize button click event?

  • Thread starter Thread starter Brad Melendy
  • Start date Start date
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
 
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
 
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
 
Back
Top