Results 1 to 7 of 7

Thread: Just a simple problem with tabstop

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    47
    Hey!


    I'm using VB6. I have a form which contains five buttons and a frame. There are couple of buttons, checkboxes and six optionbuttons on this frame. I want to set the tabstop only for those five buttons outside the frame. How to do this? Setting the tabstop property to false helps only with the regular command buttons and checkboxes but after the tabindex 5 my app jumps to one of those optionbuttons (even I have set them also to tabstop = false)....please help.



    L

  2. #2
    Addicted Member
    Join Date
    Apr 2000
    Location
    Sheffield, England.
    Posts
    136
    Try setting their tabindex to '0'?

    I realy don't think that'll help much but it's worth a try...?
    Visual Basic 6 Enterprise Edition + SP4

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    47
    Thanks but that didn't work....any other ideas??

  4. #4
    Member
    Join Date
    Nov 1999
    Location
    Perth, WA
    Posts
    35
    just an idea, try usin the getfocus to setfocus elsewhere.
    ie when they tab into it set focus to one of the buttons

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    You must have done something wrong because if you set the TabStop property of the OptionButtons to False you won't be able to Tab to them.

    Are your OptionButtons in a control array? If so, and you set the TabStop to False after the control array was created, you might have forgotten that you would then need to set the TabStop property of each control array member.

  6. #6

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    47
    I'm not quit sure what do you mean by the control arrays........

  7. #7
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    You may already know this, but you create control arrays by copying existing controls. That action copies all the properties of the original control. What I was getting at however was that if you already have, say, three option buttons in a control array and their TabStop property is True, then if you want to change that, you need to change the TabStop property of each of the three option buttons.

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