WindowState Event

  • Thread starter Thread starter Ron
  • Start date Start date
Something like this would work:

Const WM_MOVE As Integer = &H3
Const WM_SIZE As Integer = &H5
Const WM_WINDOWPOSCHANGED As Integer = &H47

Protected Overrides Sub WndProc(ByRef m As Message)
MyBase.WndProc(m)
Select Case m.Msg
Case WM_MOVE, WM_SIZE, WM_WINDOWPOSCHANGED

If Me.WindowState <> FormWindowState.Minimized Then
'do something
End If

End Select

End Sub

Jerry
 

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