I use vb6.i have a small problem guys..my form is not unloading.
I want my application to end only if the user presses shift+F10.so i run a timer with interval=1 which checks the keyboard state of both the keys.if at any instant both the keys are pressed a messagebox must be displayed and then the form must unload.
I've done the coding and what happens is the message box is displayed but the form doesnt unload.
I've tried debugging too.what i see is the unload statement evokes the unload event of the form ,but after this event the form's load event runs again..
I dont know why this happens..does anybody know why and the solution to this problem??
I want my application to end only if the user presses shift+F10.so i run a timer with interval=1 which checks the keyboard state of both the keys.if at any instant both the keys are pressed a messagebox must be displayed and then the form must unload.
I've done the coding and what happens is the message box is displayed but the form doesnt unload.
I've tried debugging too.what i see is the unload statement evokes the unload event of the form ,but after this event the form's load event runs again..
I dont know why this happens..does anybody know why and the solution to this problem??
Comment