我正在尝试找到一种默认禁用单选按钮的方法。我已经设法在我的事件处理程序中禁用它们,CheckedChanged
但这仅在用户采取行动时才有效。如何默认禁用控件?
Private Sub rdoCustomer_CheckedChanged(ByVal sender As Object,
ByVal e As EventArgs) _
Handles rdoCustomer.CheckChanged, rdoDepartment.CheckedChanged
rdoCustomer.Enabled = False
rdoCustomer.Checked = True
rdoDepartment.Enabled = False
End Sub