How to Disable a button when....
How Do i Disable a button when a Radiobutton is check?
im making my Frist injecter and its working but few issus
thanks you
im making my Frist injecter and its working but few issus
thanks you



If Radiobutton1.Checked = True Then Button1.Enabled = 0 Else 'If Radiobutton1 is not checked do this Button1.Enabled = 1 End if
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
Button1.Enabled = RadioButton1.Checked
End Sub
Button1.Enabled = RadioButton1.Checked
Button1.Enabled = Not RadioButton1.Checked
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged'This event triggers whenever RadioButton1 is checked or uncheckedButton1.Enabled = RadioButton1.Checked'Button1 enabled property is true or false depending on whether RadioButton1 being checked or not, which can only be either true or false since its a booleanEnd Sub
this was alot of help my only ploblem now is that my auto inject dont work but its oki