How to show a form after closing it ..
-
when i view a from from another one .. if i closed this form from the x buttom on the top courner .. how could i show this form again .. or if theres away that i can prvent the user from closing the form and hide it instead .. any one have an idea about how to solv this problem .. reply me plz لا اله الا الله محمد رسول الله
-
when i view a from from another one .. if i closed this form from the x buttom on the top courner .. how could i show this form again .. or if theres away that i can prvent the user from closing the form and hide it instead .. any one have an idea about how to solv this problem .. reply me plz لا اله الا الله محمد رسول الله
Dunno what's possible in VB, but once you click the X, the form is destroyed. If you can catch the close event, you can set the form to be invisible. It will need to be modeless, otherwise it will maintain the focus and your main window will not be responsive. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
Dunno what's possible in VB, but once you click the X, the form is destroyed. If you can catch the close event, you can set the form to be invisible. It will need to be modeless, otherwise it will maintain the focus and your main window will not be responsive. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
The reason the child form is destroyed is becuase you loss all references to it. if your working in vb.net you need to create a variable in a different class, holding a reference to your created form, or the reference can be 'Shared' (which i don't reccommend) if you are working in vb6, you can try do the same as for the .net (but i'm not sure if it would work) or try to create the form in a different parent form. you can also monitor the form's 'Closing' event(.net) or 'QueryUnload' event(vb6) and then you can cancel the termination of the form and just hide it. in both cases you need to set the 'Cancel' parameter to 'True'. Fade (Amit BS)
-
when i view a from from another one .. if i closed this form from the x buttom on the top courner .. how could i show this form again .. or if theres away that i can prvent the user from closing the form and hide it instead .. any one have an idea about how to solv this problem .. reply me plz لا اله الا الله محمد رسول الله
-
How to cancel the unload event ..??? i tried to do this befor but i just dont know how to cancel the unload event لا اله الا الله محمد رسول الله
-
How to cancel the unload event ..??? i tried to do this befor but i just dont know how to cancel the unload event لا اله الا الله محمد رسول الله
-
-
If the program is still running, then on the form you are on use a button or a file menue option or some kind of event and recal the form you would like to open up. Its just like calling a form for the first time. if that doesnt make sence feel free to email me at iamydd@bellsouth.net