Sunday, January 10, 2010

CheckBox Control

What is a checkbox control in visual basic?



Checkbox control gives true or false type input. It offers a tick or untick option. The state of the control can be accessed by it Value property. It can be either Unchecked(0) or checked(1).

Visible property is used to show or hide the control on user screen. Style property can be Standard(0) or Graphical(1). Thus you can show picture on checkbox control using it picture property and set Style property to Graphical.

CheckBox also supports DataSource property. You can set a database field to a checkbox. It should be a Yes/No, True/False type field because the checkbox can accept only these two values.