From Form to Form

  • Thread starter Thread starter tiger79
  • Start date Start date
T

tiger79

Hi,
when I create an instance of o form inside of another form and use the
folowing command to show the 2nd form : form2.Show() it wont show the second
form untill i close the first one. I'd like to know if its possible to show
the second form directly (lets say on top of the other) without closing the
first one (because i still need to us it)...
Thanx...
 
Tiger:

Hide the first one and then just unhide it when you need it again. Also,
depedning on the sequence you could call form2 with ShowDialog() instead of
show().

HTH,

Bill
 
Hello,

William, a what if the Form1 contains Form2 (e.g. Form2.Parent == Form1) and
I call ShowDialog. I've noticed that it behaves a little strange. The Form2
becomes unaccessible ... I
It seems that when I invoke ShowDialog it opens 2 window: one is child of
Form1 and the second is Form2 as a dialog box...

Maybe it's important to say that Form1 is fullscreen window.

Are any ideas how to avoid this effect?
 
when I try to Hide it when the 2nd form comes up the main menu (also the
heading) of the first one will remain visible untill i click somewhere on
the second form...
but it seems like ShowDialog works for me...
thanx
 
Alex, I haven't come across that but let me check it out and I'll get back
to you...sounds interesting.
 
How can u make a relationship between 2 forms (just like ur saying one the
parent of the other) ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top