Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

Try using showdialog instead of show.

 

There has been a quite good thread on this topic some days ago. Try searching for it.

 

Voca

Posted
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
  • *Experts*
Posted
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.
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...