multiple forms bug?

  • Thread starter Thread starter Darren Franklin
  • Start date Start date
D

Darren Franklin

Hi,

I have a small application that uses multiple forms. When the second form
is shown it shows parts of the first form as well and disables the second
one.

I am using the folloiwing in a button handler to show it.

Form2 new_form;
new_form = new Form2();
new_form.Parent = this;
new_form.ShowDialog();

I noticed that something similar has been asked in the past, but where can
the archive of this newsgroup be found, so I can search for it?

I am stumped, as it "seemed" to work ok last night, but stopped working
today?

Thanks

Darren
 
Hi,

it appears to be the call:
new_form.Parent = this;

that causes the weirdness - is this a known bug or am I doing something
stupid?
 
Why don't you just declare:

dim form2 as new form2
form2.show
form2.showdialog 'either one

Both of them will simply bring up the form on top of the
current one.

By the way, I have never tried this Parent/Child in form,
so I wouldn't really know if there is something I missed
out.
 
Darren said:
Hi,

it appears to be the call:
new_form.Parent = this;

that causes the weirdness - is this a known bug or am I doing
something stupid?

Hi Darren,

I have also experienced problem with this. In my case, if I set the
parent property and show the non-full-screen child form modally, my
child form won't show up and first form won't response to any UI events
(as it is showing the other form modally).
My solution was that I stopped settting parent property. However, I
think that childForm.BringToFront or ParentForm.SendToBack might have
worked as well as.

-Vinay.
 
Back
Top