?
Solved

vb.net - enable RadioButton

Posted on 2010-11-12
1
Medium Priority
?
469 Views
Last Modified: 2012-05-10
hello there,
I have two tabs in one TabControl...
on both tabs I have one RadioButton.. when I click to enable one I click in the second tab and I enable the second but then both are enabled..
how can I make it so both RadioButtons cant be enabled at the same time?
0
Comment
Question by:XK8ER
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 34125365
Here's one way:
Private Sub RadioButton_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged, RadioButton2.CheckedChanged
	If sender Is RadioButton1 Then
		RadioButton2.Checked = Not RadioButton1.Checked
	ElseIf sender Is RadioButton2 Then
		RadioButton1.Checked = Not RadioButton2.Checked
	End If
End Sub

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses

839 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