Solved

About Option Button

Posted on 2002-06-06
9
154 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:Vadimka
9 Comments
 
LVL 4

Expert Comment

by:gencross
Comment Utility
You should be able to use the label click event and fire the click event of the option within the label click event
0
 
LVL 44

Expert Comment

by:Arthur_Wood
Comment Utility
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
 
LVL 5

Expert Comment

by:rpai
Comment Utility
That happens by default i.e clicking the text adjacent to the option button, the option button gets enabled(selected)
Does it not?
0
 
LVL 4

Expert Comment

by:gencross
Comment Utility
Code:

Sub Label1_Click

Call Option1_Click

End Sub
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 4

Expert Comment

by:gencross
Comment Utility
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
 

Author Comment

by:Vadimka
Comment Utility
yes,exactly
0
 
LVL 28

Expert Comment

by:vinnyd79
Comment Utility
Just click the text and it should select the option as rpai has suggested.
0
 
LVL 2

Expert Comment

by:ventond
Comment Utility
The option button has a built in label. Just set the .Caption propertie and do away with your other label.
0
 
LVL 2

Accepted Solution

by:
priya_pbk earned 50 total points
Comment Utility
yes, clicking the caption of the option button, itself selects the option button.

Therefore no code no NOTHING.!!

-priya
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now