.
Using Windows Controls
Table 6.2
lists the commonly used Windows form controls that you can pick from the
Windows Forms section of the Toolbox. You can place any of these controls on your
Windows. Toolbox. You can place any of these controls on your
Windows form.
Table 6.2: COMMONLY USED WINDOWS FORM CONTROLS
CONTROL DESCRIPTION
Label Displays text. You set the text that you want to dis...
. listView1.Focus();
Unselect the selected items:
listView1.SelectedItems.Clear();
Slide 25
Week 2
Windows Controls
(Chapter 1 - 4)
Default event in ListView control
SelectedIndexChanged event: occurs. a component that allows you to
organize groups of images
ImageList supplies images to other controls, such as
ListView, TreeView control (p.116)
Some important properties:
Images
Ima...
. cancelled.
Advanced topics in Windows Forms
MDI application (p.553)
The NotifyIcon component (p.123)
Drag-Drop (p.533)
Self-study
Using user assistance controls and components (p.573-
p.590)
Implementing. Publish Now button
Exercise 1- Publishing an Application to a Network
Share
Slide 48
Week 3
Windows Controls
Default event of TreeView
AfterSelect event: occurs when the sel...
. Minh họa GroupBox
groupBox1 chứa 2 control
textBox1 và button1
textBox2 và button2 chứa
trong Controls của Form
Nguyen Ha Giang -2008
15
Label, TextBox, Button
n Label
q Cung cấp chuỗi thông. -Docking
n Các control có thể gắn (dock) với một cạnh nào đó của
form, hoặc container của control.
Windows Explorer
TreeView gắn
bên trái
ListView gắn
bên phải
Nguyen Ha Giang -2008
76
CheckedListBox
n...