
Introduction
This article introduces check boxes with different checked and border styles. The following lists shows the different properties and events associated with them.
Properties
Caption
(String
) - Addition of a text.
TextColor
(Color
) - Color of the text.
TextFont
(Font
)- Font of the text.
CStyle
(Enumeration
) - Kind of selected graphics.
FStyle
(Enumeration
) - Visible style.
StyleKind
(Enumeration
) - Kind of visible style.
SmoothingMode
(SmoothingMode
) - Quality of the graphics.
CheckedState
(Boolean
) - CheckBox is selected or deselected.
CheckedColor
(Color
) - Selected color.
Events
BeforeChanging
- Event which will execute before checking.
CheckedChanged
- Event which will execute after checking.
Examples
Private Sub CheckBox1_CheckedChanged(ByVal Checked_State As Boolean) _
Handles CheckBox1.CheckedChanged
MsgBox(Checked_State)
End Sub
Private Sub CheckBox1_CheckedChanged(ByVal Checked_State As Boolean) _
Handles CheckBox1.CheckedChanged
CheckBox1.ForeColor = Color.Red
End Sub
Private Sub CheckBox1_CheckedChanged(ByVal Checked_State As Boolean) _
Handles CheckBox1.CheckedChanged
CheckBox1.FStyle = CheckBox.CheckBox.Flat_Style.Blue
CheckBox1.CStyle = CheckBox.CheckBox.Check_style.Draw_X
CheckBox1.StyleKind = CheckBox.CheckBox.Style_Kind.Circle
End Sub
Private Sub CheckBox1_CheckedChanged(ByVal Checked_State As Boolean) _
Handles CheckBox1.CheckedChanged
CheckBox1.SmoothingMode = Drawing2D.SmoothingMode.HighQuality
End Sub