Monday, 1 April 2013

ComboBox, ListBox and CheckListBox

We use these three controls to provide a users with the list of values to choose from.
  1.  ComboBox: It is a combination of two controls :
  • DropDown list
  • TextBox
It allows us to either select a value from the list of values as well as enter a new value in the list but provides only single selection.

     2.  ListBox: This control also provides with list of values to choose from and by default this control also support single selection only but can be customized to multi-selection by setting a property SelectionMode either as multi simple or muti extended.
  • SelectionMode[Enumerated Property]
  • None
  • One[default]
  • Multi Simple(Only Mouse Click)
  • Multi Extended(ctrl+ Mouse Click)
     3.   CheckList Box : This control also provides a list of values to choose from but it displays a checkbox beside each item from selection. By default this control supports multi-selection.

No comments:

Post a Comment