|
-
Jun 6th, 2001, 07:07 PM
#1
Thread Starter
Member
Minimized or normal
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
Visual Basic 6.0 Enterprise Edition
Java 2
Windows 98
Mac OS 9.1
-
Jun 6th, 2001, 07:10 PM
#2
VB Code:
If Me.WindowState = vbMinimized Then
MsgBox "Minimized"
ElseIf Me.WindowState = vbNormal Then
MsgBox "Normal"
End If
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 6th, 2001, 07:10 PM
#3
_______
<?>
Code:
Private Sub Command1_Click()
MsgBox Me.WindowState '0 = normal, 1 = Min, 2 = Max
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 6th, 2001, 07:11 PM
#4
Thread Starter
Member
Visual Basic 6.0 Enterprise Edition
Java 2
Windows 98
Mac OS 9.1
-
Jun 6th, 2001, 07:13 PM
#5
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 :
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
-
Jun 6th, 2001, 07:15 PM
#6
I know, I just whipped up a quick example
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|