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. Tab Form

Tab Form

Scheduled Pinned Locked Moved C#
help
4 Posts 4 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
    Sajjad Leo
    wrote on last edited by
    #1

    Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks

    A D R 3 Replies Last reply
    0
    • S Sajjad Leo

      Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks

      A Offline
      A Offline
      a hamidy
      wrote on last edited by
      #2

      write following to your form load and tabControl selectedIndexChange Event. void setFocus(byte selectedIndex) { switch (selectedIndex) { case 0: //focus control that u want txt1.Focus(); break; case 1: //focus control that u want cmb1.Focus(); break; } } void TabControl1SelectedIndexChanged(object sender, EventArgs e) { setFocus((byte)tabControl1.SelectedIndex); } void Frm_Form7Load(object sender, EventArgs e) { //setFocus(0); If by default first tab is selected setFocus((byte)tabControl1.SelectedIndex); } set the control TabIndex to 0 and you can also set the TabControl TabStop to false.

      1 Reply Last reply
      0
      • S Sajjad Leo

        Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks

        D Offline
        D Offline
        dybs
        wrote on last edited by
        #3

        Have you checked out the MSDN documentation for the Form, TextBox, and TabControl classes? Everything you need to answer your question is there. Dybs

        1 Reply Last reply
        0
        • S Sajjad Leo

          Hi, I am working on tab form i need to do focus on first text box of tab page i already post this issue but i didn't get result please tell me what i should do. On form load first tab page will display and first text box must be focus like courser must be blink their. Thanks

          R Offline
          R Offline
          riced
          wrote on last edited by
          #4

          Open the form in design view. Click on the View menu, you will find a Tab Order option. Use it to set tab order for all your controls. No code needed.

          Regards David R

          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