disable tab stop for option button

J

jtuten

I have a form with an option button group that I am setting up. In one
scenerio the same option would always be selected. I ahve already set the
value of that one to True and the others False. I have also locked all the
buttons. However, when tabbing through the form all the buttons are still
tab stops. How do I bypass the buttons alltogether?

Any help would be greatly appreciated!
 
P

Pranav Vaidya

instead of locking the option buttons, set enable=false.
This will not get the focus to the button.

Hope this helps!!
 
D

David Sisson

Also, use the Change events, so that when one options changes, you can
Enable the locked out buttons as needed.

Optionbutton1 is already set in initialize

private sub optionbutton2_change()
optionbutton3.Enabled = True
optionbutton4.Enabled = True
end sub

Or, I usually have my option buttons in frames. Then just enable the
frame.

Frame2 has been disabled in Initialize.

private sub optionbutton2_change()
'optionbutton3 and 4 are in Frame2
frame2.Enabled = True
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top