IE show up on Top of parentForm
-
Hello All, When internet explorer open and have it maximized on the screen, and if then goback to my application and then click on menuitem. Which popups a child form. Upon closing child form, parent form loosing its focus and IE show uop on Top of my application. How i can i activate my Application when any child form closed. Thanks In Advance. Sri
-
Hello All, When internet explorer open and have it maximized on the screen, and if then goback to my application and then click on menuitem. Which popups a child form. Upon closing child form, parent form loosing its focus and IE show uop on Top of my application. How i can i activate my Application when any child form closed. Thanks In Advance. Sri
-
How do you show the childform? Did you set the owner in the
.Show()
statement?I are Troll :suss:
-
Hello Eddy, Yes, i set the parent form as property. And before closing childform i called prentform.activate() method. Regards, Sri
sri_0099 wrote:
Yes, i set the parent form as property. And before closing childform i called prentform.activate() method.
The parent isn't always the owner. There's an overloaded version of the
.Show
and.ShowDialog
method that takes an Owner-handle. The OS will reset the focus to this "owner" if the window gets closed. Something like this;new MyForm.Show(this);
If all is well, then you should be able to remove the ParentForm.Activate(), just closing the child should be enough.
I are Troll :suss: