Is there a way to tell whether or not the current form is minimized. If any 1 would like to shed some light on this I would be eternally grateful (maybe not eternally...). Thanks
-BFF
Printable View
Is there a way to tell whether or not the current form is minimized. If any 1 would like to shed some light on this I would be eternally grateful (maybe not eternally...). Thanks
-BFF
VB Code:
If Me.WindowState = vbMinimized Then MsgBox "Minimized" ElseIf Me.WindowState = vbNormal Then MsgBox "Normal" End If
Code:Private Sub Command1_Click()
MsgBox Me.WindowState '0 = normal, 1 = Min, 2 = Max
End Sub
Thanks a ton
Quote:
Originally posted by crptcblade
VB Code:
If Me.WindowState = vbMinimized Then MsgBox "Minimized" ElseIf Me.WindowState = vbNormal Then MsgBox "Normal" End If
This is better :rolleyes::
VB Code:
Private Sub Form_Resize() Select Case WindowState Case 0: MsgBox "Normal" Case 1: MsgBox "Minimized" Case 2: MsgBox "Maximized" End Select End Sub
;) I know, I just whipped up a quick example :rolleyes: