|
-
Jun 16th, 2006, 04:58 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] minimize on close
another doubt --
i want my form to minimize when the user clicks the X button i wrote this code ,it minimizes the form but exits later
VB Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Select Case UnloadMode
Case 0
Me.WindowState = vbMinimized
Exit Sub
End Select
End Sub
most messengers,download managers have this feature.how is it done??
-
Jun 16th, 2006, 05:00 AM
#2
Re: minimize on close
Set Cancel=True in your Select block.
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Jun 16th, 2006, 05:01 AM
#3
Re: minimize on close
VB Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Select Case UnloadMode
Case 0
Me.WindowState = vbMinimized
[b]Cancel = 1[/b]
Exit Sub
End Select
End Sub
-
Jun 16th, 2006, 05:01 AM
#4
Thread Starter
Frenzied Member
Re: minimize on close
oh yes i forgot abt that ,thanks shuja ali !
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
|