Click here to Skip to main content
15,867,278 members
Articles / Programming Languages / C#

A Control List View

Rate me:
Please Sign up or sign in to vote.
4.21/5 (10 votes)
1 Dec 2005CPOL 60.5K   3.1K   41   3
A Control List View which can display Like Tile View
Sample Image - Control_List_View.jpg

Introduction

Sometimes a tile list view is more useful then the standard list view control. The standard control doesn't support tile view. I needed to display some objects like tile view available in Windows Explorer. I searched on the net to solve my problem. But I could not found a better solution. So, I decided to design such a user control. While developing the tile view control, I found a better looking representation of my objects by combining the tile view and thumb nail view. The Items are the user control which can be designed according to the requirements. It has some very good features...

Auto Resize

ControlListView can resize its objects automatically if the container size changes. It arranges the items according to the available size of the container.

Auto Height Resize

ControlListView can change its height to view all the items without scroll bar if needed.

Modification

User can add, modify and delete items. It provides all the events needed to perform specific operations with the items.

Edit

History

  • 1st December, 2005: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) KAZ Software Limited
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionChange icon and back color without item property ? Pin
ShadowThe22-Nov-10 6:31
ShadowThe22-Nov-10 6:31 
Hello,

I will use this code in my personal program and i have some problems,
i fill items dynamicaly from sql my code looks like:
System.Drawing.Image x = Properties.Resources.klicaj;
TileListItem item = new TileListItem();
                
item.Title = "some text";
item.Image = x;
item.BackColor = ?                
item.Description = "";
item.Name = "name"

this.controlListViw1.Add(item);


but i dont find the way to change background color and image dynamicaly,
with item property dialog it work.

Thanks for help
GeneralGood job! Pin
tvbusy2-Dec-05 15:49
tvbusy2-Dec-05 15:49 
AnswerRe: Good job! Pin
H. S. Masud2-Dec-05 17:55
H. S. Masud2-Dec-05 17:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.