yewmeng Posted December 18, 2003 Posted December 18, 2003 hi there i m a begineer vb .net my problem is i hav 2 form form1 + button1 form2 when i click at button 1 form2 will load n form1 will unload i hav tried this code but cant working dim form2 as new form2 form2.show me.close the result is terminated the program last time i used vb can working form2.show unload me pls help me !!! thx in advance Quote
Voca Posted December 19, 2003 Posted December 19, 2003 Try using showdialog instead of show. There has been a quite good thread on this topic some days ago. Try searching for it. Voca Quote
yewmeng Posted December 19, 2003 Author Posted December 19, 2003 thx so much but why the aplication for form 1 is still at the taskbar n how 2 get rid of it? although i clicked at the aplication form 1 at taskbar was nothin to show Quote
*Experts* mutant Posted December 19, 2003 *Experts* Posted December 19, 2003 Use the Hide() method of the form rather than closing it. If the form you are trying to close is the form on which the application loop depends, the application loop will exit after the form closed and if there is no further code after that, the whole application will exit. Quote
yewmeng Posted December 20, 2003 Author Posted December 20, 2003 child form control thx so much !!!! mutant i have another problem for child form let says i hav 3 forms form1 -> mdi parent form2 + button1 -> mdi child form 3 -> mdi child form2 n form3 access by clicking the menu at form1 now when i click at button1 in form2 form3 will show i have tried the following code, the form was appear but not inside the parent form1 dim form3 as new form3 form3.show pls help me thx in advance Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.