This documentation is archived and is not being maintained.

HtmlInputCheckBox Constructor

Initializes a new instance of an HtmlInputCheckBox class.

[Visual Basic]
Public Sub New()
[C#]
public HtmlInputCheckBox();
[C++]
public: HtmlInputCheckBox();
[JScript]
public function HtmlInputCheckBox();

Remarks

Use this constructor to create and initialize a new instance of the HtmlInputCheckBox class.

The following table shows initial property values for an instance of HtmlInputCheckBox.

Property Initial Value
TagName The "checkbox" literal string.

Example

The following example demonstrates how to create and initialize a new instance of the HtmlInputCheckBox class.

[Visual Basic] 
Sub Page_Load(sender As Object, e As EventArgs)
    Dim CheckBox As New HtmlInputCheckBox()
End Sub 'Page_Load

[C#] 
void Page_Load(Object sender, EventArgs e) 
{
      HtmlInputCheckBox CheckBox = new HtmlInputCheckBox();
}
   

[C++] 
void Page_Load(Object* /*sender*/, EventArgs* /*e*/) 
{
      HtmlInputCheckBox* CheckBox = new HtmlInputCheckBox();
}
   

[JScript] 
function Page_Load(sender : Object, e : EventArgs){
    var checkBox : HtmlInputCheckBox = new HtmlInputCheckBox()
}

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HtmlInputCheckBox Class | HtmlInputCheckBox Members | System.Web.UI.HtmlControls Namespace

Show: