asp.net.ph

CheckBox Constructor

System.Web.UI.WebControls Namespace   CheckBox Class


Initializes a new instance of the CheckBox class.

[ VB ]
Public Sub New ( )

[ C# ]
public CheckBox ( );

[ C++ ]
public: CheckBox ( );

[ JScript ]
public function CheckBox ( );

Remarks

Use this constructor to initialize a new instance of the CheckBox control.

Example

The following shows how to dynamically initialize a new instance of a CheckBox control at run time.

void makeCheckBox ( Object src, EventArgs e ) {
   CheckBox myCheckBox = new CheckBox ( );
   myCheckBox.Text = "Check me out";
   myCheckBox.AutoPostBack = true;
   placeHolder.Controls.Add ( myCheckBox );
}
  C# VB

 Show me 

See Also

CheckBox Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph