RadioButton

Post your questions regarding programming in C# in here.
3 posts Page 1 of 1
Contributors
User avatar
hortencio
New Member
New Member
Posts: 19
Joined: Thu Apr 19, 2012 1:41 am

RadioButton
hortencio
Hi,

I worte a list of 5 options using RadioButton. Now i want by checking one of those
options to open a correspondent form but clicking in one button.Is it possible?
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: RadioButton
M1z23R
You could use something like this

Code: Select all

If Radiobutton1.checked = true Then
Form2.show

elseIf Radiobutton2.checked = true Then
Form3.show

elseIf Radiobutton3.checked = true Then
Form4.show

elseIf Radiobutton4.checked = true Then
Form5.show

elseIf Radiobutton5.checked = true Then
Form6.show
End if

User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: RadioButton
MrAksel
In the C# section...
Code: Select all
if (radioButton1.Checked) new Form2().Show();
else if (radioButton2.Checked) new Form3().Show();
else if (radioButton3.Checked) new Form4().Show();
else if (radioButton4.Checked) new Form5().Show();
else if (radioButton5.Checked) new Form6().Show();
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
3 posts Page 1 of 1
Return to “General coding help”