views:

179

answers:

1

i have two winforms loaded simultaneously first form with web browser and second form having just controls second form always on top of second form, second form doesn't receive any mouse events while first form loaded, after closing first form, second form receive all mouse events. how do i solve this issue

A: 

Please post the code you're using to show for your second form, although it should be something like this:

Form2 myForm2 = new Form2();
Form2.Show(this);

It's not very likely that your WebBrowser is causing this.

MiffTheFox
fixed, thanks i have used Form2 myForm2 = new Form2(); Form2.ShowDialog(this);which causes the issueSolved with following code Form2 myForm2 = new Form2(); Form2.Show(this);
JKS