RadioButton
Post your questions regarding programming in C# in here.
3 posts
Page 1 of 1
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?
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?
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
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!
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!
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023