0% found this document useful (0 votes)
33 views

Tools of C

The document discusses several common controls in C# .NET including ListView, TreeView, TabControl, ComboBox, and CheckedListBox. It focuses on the ListView control, describing how to add it to an application using drag and drop or code, set its display mode properties, add items without or with details, and add columns and subitems when in details view mode.

Uploaded by

WilliamTran
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Tools of C

The document discusses several common controls in C# .NET including ListView, TreeView, TabControl, ComboBox, and CheckedListBox. It focuses on the ListView control, describing how to add it to an application using drag and drop or code, set its display mode properties, add items without or with details, and add columns and subitems when in details view mode.

Uploaded by

WilliamTran
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

TOOLS OF C# .

NET
TRAN XUAN NAM
TRUONG AN PHUOC
CONTENTS
Listview
Treeview
Tabcontrol
Combobox
Checklistbox
CONTENTS
Listview
Treeview
Tabcontrol
Combobox
Checklistbox

LISTVIEW
A COMMON CONTROL OF C# .NET


Provides a useful view of
items with icons
Similar to those found in file
system managers such as
Windows Explore

LISTVIEW
ADDING THE LISTVIEW TO THE
APPLICATION


Drag and Drop from
Toolbox





LISTVIEW
ADDING BY CODE

Create a ListView object
Set size
Add to form




LISTVIEW
CHANGING THE DISPLAY MODES


5 View Properties of a ListView
LargeIcon
Details
SmallIcon
List
Title


LISTVIEW
CHANGING THE DISPLAY MODES


Change by GUI

LISTVIEW
CHANGING THE DISPLAY MODES


Change by CODE

LISTVIEW
ADDING ITEM (NOT A DETAILS
LISTVIEW)


Dont use with
View.Details
By GUI
Use Items property
on Properties window

LISTVIEW
ADDING ITEM (NOT A DETAILS
LISTVIEW)


By CODE
Add items by Add
method

LISTVIEW
ADDING COLUMN


Only use when View property is set Details
2 ways: by GUI, by CODE

LISTVIEW
ADDING COLUMN


By GUI
Use Column property in
Properties window

LISTVIEW
ADDING COLUMN


By CODE
Columns.Add(string text, int width)

LISTVIEW
ADDING SUBITEM


Work when View property is Details

You might also like