i have written a code like this:
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
Me.BackColor = Color.Black
End Sub
Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
Me.BackColor = Color.LightGreen
End Sub
Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChanged
Me.BackColor = Color.OrangeRed
End Sub
Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
End Sub
but when i try to debug the form is loading with the first radiobutton checked and also with the backcolor of the event.
i want my form to be plain when it loads and only it should change when i click radiobutton..
thanks
Hirendra SisodiyaPosted Jan 4, 2010, 11:36 PM
You can add new control groupBox,and than add all three radiobutton on it.
Check attached code.
ThankYou.