'on some OS however, it will take it as this program is not
'responding
Private Sub Form_queryUnload()
cancel=1
MsgBox "You wanna **** down? No way"
End
End Sub
Printable View
'on some OS however, it will take it as this program is not
'responding
Private Sub Form_queryUnload()
cancel=1
MsgBox "You wanna **** down? No way"
End
End Sub
for the part about closeing appliactions or other things i just do
VB Code:
Private Sub Form_Unload(Cancel As Integer) End End Sub
sometimes i call on it for what ever reasons that might be
VB Code:
Unload Form1
if i dont have a unload or end. the app will just keep running even tho when u hit the [x] button it will hide the app but still be showing up in the taskbar manager.
It's amazing to me how often "how to close an app" leads to long repititious discussions. IMHO, James' first post shows the proper way to end an app. (BTW, please don't respond if you don't agree. As I said there's been a lot of discussion about this and any more would be pretty much pointless).Quote:
Originally posted by stonie
for the part about closeing appliactions or other things i just do
VB Code:
Private Sub Form_Unload(Cancel As Integer) End End Sub
sometimes i call on it for what ever reasons that might be
VB Code:
Unload Form1
if i dont have a unload or end. the app will just keep running even tho when u hit the [x] button it will hide the app but still be showing up in the taskbar manager.
Hi Marty.Quote:
Originally posted by MartinLiss
It's amazing to me how often "how to close an app" leads to long repititious discussions. IMHO, James' first post shows the proper way to end an app. (BTW, please don't respond if you don't agree. As I said there's been a lot of discussion about this and any more would be pretty much pointless).
I do agree that the first post is the answer (although it's really a kludge to catch mistakes you made elsewhere), so presumably I can reply.
Don't you think discussion is healthy in its own right?
It promotes social interaction. And isn't discussion the entire point of a Forum?
Granted, some discussions are long rambling and pointless - but as long as they give the participants some satisfaction, why not? Nobody needs to read threads they do not want to. (Unless they are a moderator of course :) )
Can't see any problem here, unless we are running out of disk-space or bandwidth. (We aren't are we?)
I always Use Unload Me
And usually
VB Code:
Private Sub Form_Unload(Cancel As Integer, UnloadMode As Integer) 'Add my code here Unload Me End 'Whatever End Sub
Somone should lock this thread. I'm tired of rinding on the merry-go-round.
I agree.