Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

About Option Button

Posted on 2002-06-06
9
Medium Priority
?
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 4

Expert Comment

by:gencross
ID: 7060076
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
ID: 7060078
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
ID: 7060082
That happens by default i.e clicking the text adjacent to the option button, the option button gets enabled(selected)
Does it not?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 4

Expert Comment

by:gencross
ID: 7060083
Code:

Sub Label1_Click

Call Option1_Click

End Sub
0
 
LVL 4

Expert Comment

by:gencross
ID: 7060092
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
ID: 7060156
yes,exactly
0
 
LVL 28

Expert Comment

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

Expert Comment

by:ventond
ID: 7060588
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 200 total points
ID: 7061178
yes, clicking the caption of the option button, itself selects the option button.

Therefore no code no NOTHING.!!

-priya
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

597 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