I
Imran Koradia
Override the WndProc method of your form for which you're looking to capture
the minimize event as follows:
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Const WM_SIZE As Integer = &H5
Const SIZE_MINIMIZED As Integer = 1
Select Case m.Msg
Case WM_SIZE
If m.WParam.ToInt32 = SIZE_MINIMIZED Then
Debug.WriteLine("minimizing..")
End If
End Select
MyBase.WndProc(m)
End Sub
hope this helps..
Imran.
the minimize event as follows:
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Const WM_SIZE As Integer = &H5
Const SIZE_MINIMIZED As Integer = 1
Select Case m.Msg
Case WM_SIZE
If m.WParam.ToInt32 = SIZE_MINIMIZED Then
Debug.WriteLine("minimizing..")
End If
End Select
MyBase.WndProc(m)
End Sub
hope this helps..
Imran.