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. C#
  4. Focus on Child Form

Focus on Child Form

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpquestion
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.
  • I Offline
    I Offline
    idreesbadshah
    wrote on last edited by
    #1

    Hi I have written an application in which on left side there are oulook style menu.When i click anyone from that menu a new child form open in panel control of parent form. My problem is that this child form is not getting focus .i HAVE ALSO TRIED .FOCUS AND .SELECT methods. if i donot add this child form in panel control then form gets focus but on maximizing child form it also covers the area of left created menus. So how i can get focus on child form in panel control ? or how i restrict child form not extend from specified left position on maximization. I am using Visual Studio 2005 c# windows form

    J 1 Reply Last reply
    0
    • I idreesbadshah

      Hi I have written an application in which on left side there are oulook style menu.When i click anyone from that menu a new child form open in panel control of parent form. My problem is that this child form is not getting focus .i HAVE ALSO TRIED .FOCUS AND .SELECT methods. if i donot add this child form in panel control then form gets focus but on maximizing child form it also covers the area of left created menus. So how i can get focus on child form in panel control ? or how i restrict child form not extend from specified left position on maximization. I am using Visual Studio 2005 c# windows form

      J Offline
      J Offline
      Jakub Mller
      wrote on last edited by
      #2

      myChildForm.Activate();

      Geniality is in simplicity.

      I 2 Replies Last reply
      0
      • J Jakub Mller

        myChildForm.Activate();

        Geniality is in simplicity.

        I Offline
        I Offline
        idreesbadshah
        wrote on last edited by
        #3

        Yes i tried this one also but child form not getting focus in panel

        1 Reply Last reply
        0
        • J Jakub Mller

          myChildForm.Activate();

          Geniality is in simplicity.

          I Offline
          I Offline
          idreesbadshah
          wrote on last edited by
          #4

          Also note that if there is text box on child form and in this scnerio if you click text box you can type text in it but cannot select the text in textbox by simply mouse selection(draging mouse).

          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