Rad btn select case
-
Can someone help, I'm having a brain fart (new to vb.net)? Have a form with multiple radio buttons. When a user selects a radio button, then clicks submit, a form based on the selection will open. What is the simplest 'select case' code to do this? Thanks :)
-
Can someone help, I'm having a brain fart (new to vb.net)? Have a form with multiple radio buttons. When a user selects a radio button, then clicks submit, a form based on the selection will open. What is the simplest 'select case' code to do this? Thanks :)
i think in that situtaion u cannot use SElect Case, ElseIf more efficent if RadioButton1.Checked then 'Open Form1 dim _frm as new Form1 Form1.ShowDialog ElseIf RadioButton2.Checked then 'Open Form2 ElseIf RadioButton3.Checked then 'Open Form3 Else RadioButton4.Checked then 'Open Form4 End If