' auto switch the readable state according to check state of radiobutton2 TextBox1.ReadOnly = RadioButton2.Checked If RadioButton1.Checked = True Then ' put your validation code here MsgBox("Run validation code") End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)