1- Open a new Windows Application project in VB.NET.
2- add a class, Change the file name of the new class to newCheckBox
3- open the code window for the class and add this code:
Public Class newCheckBox
Inherits CheckBox
Private myYesNo As String
Property YesNo() As String
Get
Return myYesNo
End Get
Set(ByVal Value As String)
myYesNo = Value
End Set
End Property
End Class
4- Open the code window for the form load event procedure and add this code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MyCheckbox As New newCheckBox
Controls.Add(MyCheckbox)
End Sub