12-29-2009, 05:03 AM
(12-11-2009, 11:59 AM)dunlop03 Wrote: That wont work , trust me you need to code the check boxes like this :[/quote]
Code:Private Sub CheckBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.Click
If CheckBox1.Checked = True Then
CheckBox2.Checked = False
CheckBox3.Checked = False
End If
End Sub
Private Sub CheckBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.Click
If CheckBox2.Checked = True Then
CheckBox1.Checked = False
CheckBox3.Checked = False
End If
End Sub
Private Sub CheckBox3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.Click
If CheckBox3.Checked = True Then
CheckBox1.Checked = False
CheckBox2.Checked = False
End If
End Sub
Hmm, couple of weeks ago I spent ages trying to figure out why the radio buttons on my program didn't function properly (It was a calculator, I'm new to VB), then I decided to try them in different Subs lol