Maximize button

CornMaster
08-31-2000, 10:34 PM
I noticed today that when I closed my compiled program via the "X" and opened the task manager I say my program was still running.
Anyway for the "X" to launch my exit conformation form??

CornEmpire Board Administrator
<A HREF="http://www.geocities.com/thecornmaster/" target="_new">http://www.geocities.com/thecornmaster/</A>

amram71
08-31-2000, 10:51 PM
Yep. Use Form_queryunload
Dim res as vbMsgBoxResult
res=MsgBox("are You sure you wanna quit?",vbyesno)
Select Case Res
Case Yes
Cancel=1
Case Else
End
End Select

BillSoo
09-01-2000, 12:32 PM
Other way around:

case vbYes
'run exit code here or in the form_unload event
case vbNo
Cancel=True


"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum