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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. TAB issue in MDI form

TAB issue in MDI form

Scheduled Pinned Locked Moved C#
helpquestiondesignjson
2 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.
  • K Offline
    K Offline
    Kais4U
    wrote on last edited by
    #1

    Hi All, I am using MDI form, The first 20% of the form am displaying Treeview control and in the rest of the portion am displaying a mdiChild form. The mdiChild form has got few UI controls on which tab order is set. Now the issues is, when we hit on tab, it revolves within the child form. How can i make it to go to treeview control once the last control on the child form is focus? ie. on being on the last control and hit tab, the focus should go to the treeview. Any help is highly appreciated. Thanks in advance for any guidance and suggestion Regards Kais

    N 1 Reply Last reply
    0
    • K Kais4U

      Hi All, I am using MDI form, The first 20% of the form am displaying Treeview control and in the rest of the portion am displaying a mdiChild form. The mdiChild form has got few UI controls on which tab order is set. Now the issues is, when we hit on tab, it revolves within the child form. How can i make it to go to treeview control once the last control on the child form is focus? ie. on being on the last control and hit tab, the focus should go to the treeview. Any help is highly appreciated. Thanks in advance for any guidance and suggestion Regards Kais

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello In that last control, handle the KeyUp event

      private void MyLastControl_KeyUp(object sender, KeyEventArgs e)
      {
      if (e.KeyData == Keys.Tab)
      MyTreeView.Focus(); //Needs .Net 2.0
      }

      Regards:rose:

      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