Example : How to Set the Default selection of a Check Box on Page/Form load.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        CheckBox1.Checked = True
End Sub
Example : How to Remove Default selection of a Check Box on Page/Form load.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        CheckBox1.Checked = False
End Sub
Example : How to Set Default Value/Name for a Check Box dynamically on Page/Form load.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        CheckBox1.Text = "Non-Matric"
        CheckBox2.Text = "Graduation"
End Sub
Example : How to Set Alignment of Check Box symbol location dynamically on Page/Form load.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        CheckBox1.CheckAlign = ContentAlignment.MiddleRight
End Sub
Example : How to Focus on a Check Box dynamically on a certain event.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        CheckBox1.Focus()
End Sub
Example : How to make a Check Box Disable/Inactive dynamically on a certain event.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    CheckBox1.Enabled = False
End Sub
Example : How to make a Check Box Hide/Disappear dynamically on a certain event.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    CheckBox1.Visible = False
End Sub
Example : How to make a Check Box Text or Contents Color dynamically on a certain event.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    CheckBox1.ForeColor = Color.Red    
End Sub

Loading

Categories: VB .Net Codes

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.