About Option Button

I have some Option Buttons in the program
And I want to choose one of them not only cliking on this
button ,but also cliking on the text which is near this
button.
How can I do this ?
Thanks.
VadimkaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
priya_pbkConnect With a Mentor Commented:
yes, clicking the caption of the option button, itself selects the option button.

Therefore no code no NOTHING.!!

-priya
0
 
gencrossCommented:
You should be able to use the label click event and fire the click event of the option within the label click event
0
 
Arthur_WoodCommented:
If I am not mistaken, if you have a LABEL control associated with each option (radio) button, and make the TabIndex of the Option button ONE MORE than the TabIndex of the associated label control, then, since you cannot TAB to a Label( and you cannot "select" a Label), when you click on the Label, the associated option button is selected. Is That what you want to have happen?

Arthur Wood
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
rpaiCommented:
That happens by default i.e clicking the text adjacent to the option button, the option button gets enabled(selected)
Does it not?
0
 
gencrossCommented:
Code:

Sub Label1_Click

Call Option1_Click

End Sub
0
 
gencrossCommented:
forgot...

You would set the caption of the option button to nothing and use the label in it's place.

There may be a better way to do this, but this way will work.

Hope this helps.
0
 
VadimkaAuthor Commented:
yes,exactly
0
 
vinnyd79Commented:
Just click the text and it should select the option as rpai has suggested.
0
 
ventondCommented:
The option button has a built in label. Just set the .Caption propertie and do away with your other label.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.