List-Based Controls: ComboBox, ListBox, and CheckedListBox, Slides of C Sharp Programming

An introduction to list-based controls in programming, specifically focusing on combobox, listbox, and checkedlistbox. It covers their properties, methods, and events, as well as how to add items at design-time and run-time.

Typology: Slides

2012/2013

Uploaded on 09/27/2013

vikrant
vikrant 🇮🇳

4.4

(9)

119 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
List-based Controls
docsity.com
pf3
pf4
pf5
pf8

Partial preview of the text

Download List-Based Controls: ComboBox, ListBox, and CheckedListBox and more Slides C Sharp Programming in PDF only on Docsity!

List-based Controls

Introduction

 There are several controls that work with lists  ComboBox  ListBox  CheckedListBox

The ComboBox Control (2)

 The DropDownStyle property controls how the list drops-down, and whether the box is editable  Count contains the number of items in the list  Adding and removing items works the same way as any collection  Add , Insert , Clear , Remove

The ComboBox Control

Adding items at design-time

 Set the Items property using the String Collection Editor

The ListBox Control (1)

 It’s really a ComboBox that does not drop- down  Most of the properties work the same way  Set the SelectionMode property to select one or many items  One , MultiSimple , MultiExtended  Call GetSelected and SetSelected to determine whether an item is selected or to select an item

The CheckedListBox

Control

 It’s really just a ListBox control