CheckBox CodeSample - Simple CheckedChanged handler

From Visual WebGui Wiki

Jump to: navigation, search


Overview

A very simple example of a CheckedChanged event handler on a CheckBox.

VB.NET Code

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
    MessageBox.Show("CheckBox is now " + CheckBox1.Checked.ToString)
End Sub

C# Code

Personal tools