The close buttons (the "x" on the top right corner of the forms) are sometimes not responding. But I'm very sure that the forms are working fine, becoz I got command buttons that can close the forms. Is there any solution to this? Thanx.
Printable View
The close buttons (the "x" on the top right corner of the forms) are sometimes not responding. But I'm very sure that the forms are working fine, becoz I got command buttons that can close the forms. Is there any solution to this? Thanx.
Is there any pattern to when they do not work?
I have multiple forms on my application. I suspect that it is because of the way I open up the forms? (coz I open and close them by setting the visible property) Actually is there any ways that I can set the function of those close buttons?
Put a breakpoint in the QueryUnload event of the form and check to see if unloadmode =0 (This means that you have clicked the "x").
I can't think of any reason that this wouldn't work but maybe you should consider using form.show and form.hide.
I found out that when I hardcode the display of the contents on the textbox controls on the form, the "x" button doesn't respond. But when i leave the textbox displays alone, the button now works. That's odd.....