• Welcome to Valhalla Legends Archive.
 

Quick Question

Started by Reaper~, November 16, 2004, 10:08 PM

Previous topic - Next topic

UserLoser.

Quote from: Reaper~ on November 18, 2004, 05:47 PM
UserLoser, this is probably a lot like yours. No controlbar, won't move, etc.. that's all I'm trying to do is make it uncloseable unless computer is shut off or something. Also,
Quote

Cancel = 1 'Won't close when 'X' button is pressed


Doesn't work..
"Compile Error:
Procedure declaration does not match description of event or procedure having the same name"


Private Sub Form_Unload(Cancel As Integer)
    Cancel = 1
End Sub


Works for me, also under QueryUnload it works, too

Reaper~

Works now, just didn't see you put (Cancel As Integer) before  :-\
Back to the keypress though, still need a solution for that
Take my advice, I'm not using it.