Results 1 to 5 of 5

Thread: [CASE CLOSED]Interesting problem.... Anyway to solve it?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    204

    Resolved [CASE CLOSED]Interesting problem.... Anyway to solve it?

    Hi,

    I've got a weird problem. You see, there are many textboxes in my page and when user press tab button in the keyboard, it would sometimes jump to the Address link bar, sometimes to the button.

    Is there anyway to stop that and make it so that when the user press tab, it will jump to the next textbox instead?

    Regards,
    Roger
    Last edited by Aka Roger; Apr 26th, 2006 at 10:43 PM.
    Appreciated all helps given. Thanks Guys!

  2. #2
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Re: Interesting problem.... Anyway to solve it?

    That would be your TabIndex property

    Set your first textbox (or control) with a TabIndex of 0. incriment that number for each control that you want the tab focus to follow. for instance your first Textbox TabIndex will be 0, the next textbox will be 1, then the next will be 2, and so on...

    They will follow that order as the user tabs

    In the unlikely event that I answer your question correctly, please Rate my post

    Using Visual Studio 2005 Professional

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    204

    Re: Interesting problem.... Anyway to solve it?

    Oh hi, is you who helped me again.
    But then even though I've set the tab index, it still jump to the address bar.

    For example, TextBox1-> Index 0
    TextBox2-> Index 1

    But it jump to the address bar. Help....
    Appreciated all helps given. Thanks Guys!

  4. #4
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Re: Interesting problem.... Anyway to solve it?

    Sorry try this:

    Make your index start at 1 instead of 0. After focus on a control with a TabIndex of 0, the focus goes to the addressbar

    So make it
    TextBox1.TabIndex = 1
    TextBox2.TabIndex = 2
    TextBox3.TabIndex = 3

    In the unlikely event that I answer your question correctly, please Rate my post

    Using Visual Studio 2005 Professional

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    204

    Re: Interesting problem.... Anyway to solve it?

    Oh I got it.. Thanks a lot dude!

    P.S. Decided to post in this forum to get help because what I did last time was to delete all the textboxes and then add them in sequence again. Take lots of time and effort.
    Appreciated all helps given. Thanks Guys!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width