"X' button on form

"X' button on form

Anonymous
Not applicable
419 Views
2 Replies
Message 1 of 3

"X' button on form

Anonymous
Not applicable
Hi,
I useed the Userform_QueryClose to cancel my form.
But I am typical situation.I have a form1 ...if iclick OK on form1 it opens form2.
Now in my case ,If user clicks the'X' button of form1 the application should terminate.I tried using the same USerform_QueryClose to do that . But a wierd thing is happening...when I click OK also the application is getting terminated.

Is there smthg toget arnd this.

Thanks
Avantika
0 Likes
420 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
can you post you .dvb file?
0 Likes
Message 3 of 3

arcticad
Advisor
Advisor
If you have multiple windows opened from the same dvb file it will close all the active windows when you press the X. I normally just offset the user for to the left 10000 and then if i need to recall it I will set it back to the original position.

This only works if the forms are modless.

Then set the original user form active.
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes