![]() |
Closing out a form in Visual Basic Hi friends, I have created an application in Visual Basic 6, where i have a splash form which calls main form, which calls many other forms too. But when i am trying to close the main form using unload me then steps through all of the unfinished procedures. Is there any way I can prevent this from happening and should i mention few global variables at the same time. |
Completely closing out a form If that's the case then i would suggest you hide all your frames by using the following code Code: frmMain1.Hide |
Closing out a form in Visual Basic Thanks for replying me but i don't want any of my form to be hiding, i need to completely clean NEW instance of the form, according to me a variable is still being active which is the root cause of my problem. How can I ensure that none of the variables are still needed. |
Closing out a form in Visual Basic In that case simply move everything in declaration section of the form to bas module and also move procedures which are not directly linked to the form to the bas module and also remove any calls to the controls from modules or other forms or else you can also use the following code too Code: unload Mainform1 |
All times are GMT +5.5. The time now is 01:02 PM. |