Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. IE show up on Top of parentForm

IE show up on Top of parentForm

Scheduled Pinned Locked Moved Windows Forms
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sri_0099
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • S sri_0099

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      How do you show the childform? Did you set the owner in the .Show() statement?

      I are Troll :suss:

      S 1 Reply Last reply
      0
      • L Lost User

        How do you show the childform? Did you set the owner in the .Show() statement?

        I are Troll :suss:

        S Offline
        S Offline
        sri_0099
        wrote on last edited by
        #3

        Hello Eddy, Yes, i set the parent form as property. And before closing childform i called prentform.activate() method. Regards, Sri

        L 1 Reply Last reply
        0
        • S sri_0099

          Hello Eddy, Yes, i set the parent form as property. And before closing childform i called prentform.activate() method. Regards, Sri

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups