omsudha
asked on
Modal Forms Are Not Closed, When The Main Application Is Closed
Hi All,
I have few modal forms in my application. For Some Reasons(which are necessary for my application), I have used
<form>.show instead of
<form>.show 1
But the problem is that in such a case, if the user opens such form and forgget to close them and closes the main application these forms remain there unclosed.
What can be the solution that as soon I closes the main application (all forms opened including Modal opened with <.show> also closes).
Regards,
Om
I have few modal forms in my application. For Some Reasons(which are necessary for my application), I have used
<form>.show instead of
<form>.show 1
But the problem is that in such a case, if the user opens such form and forgget to close them and closes the main application these forms remain there unclosed.
What can be the solution that as soon I closes the main application (all forms opened including Modal opened with <.show> also closes).
Regards,
Om
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Let me clear first-
Those are modal forms with their MDIChild is False in Design, if that value is True the form would have closed auto when the main application is closed.
But the above form I have showed using
.Show instead of .show 1(vbModal)
If 2nd is the case I would not be able to interact with the main application till the form is
close, but since I have used <form>.show and also its MDIChild is False, I was facing the above problem.
However in any case your code snippet will solve my problem.
I have one more question if you can have a look and see at-
https://www.experts-exchange.com/questions/21873373/How-To-Get-LISTINDEX-Value-When-Somebody-Types.html
Thanks