Radio Buttons question

  • Thread starter Thread starter Vayse
  • Start date Start date
V

Vayse

I have 4 radio buttons. I think I used to able to do in VB6 - assign a value
to each button. So I could do something like

Select Case <GroupRAdioButtons.Value>
Case 1
Run Sub1
Case 2
Run Sub2

How would I do this in Vb.net?
Thanks
Vayse
 
I think this is how Access did it.

I think you need to check each button now
If radiobutton1.Value Then
ElseIf radiobutton2.Value Then
elseif ...
...

Robin S.
 
You could attach a click event handler to all of them, and then check the
sender's name to see which button it was with a select case statement.

Robin S.
---------------------------------
 
Back
Top