Visual Basic (Declaration) | |
---|---|
Public Property Checked As System.Boolean |
C# | |
---|---|
public System.bool Checked {get; set;} |
Property Value
Boolean. True if the check box is in the checked state; otherwise, False. The default value is False.
When the value is True, the check box portion of the control displays a check mark.
C# | Copy Code |
---|---|
private void detail_Format(object sender, System.EventArgs eArgs) { this.checkBox1.Checked = true; } |
Visual Basic | Copy Code |
---|---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format Me.CheckBox1.Checked = True End Sub |