Click here to Skip to main content
15,914,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGridView, DataSource and RowCount related query Pin
dan!sh 7-Jan-10 4:56
professional dan!sh 7-Jan-10 4:56 
QuestionCreate object explorer,query analyser and registered services windows Pin
tasumisra7-Jan-10 3:43
tasumisra7-Jan-10 3:43 
QuestionC# DataTable Pin
jojoba20107-Jan-10 3:18
jojoba20107-Jan-10 3:18 
AnswerRe: C# DataTable Pin
mrcooll7-Jan-10 4:50
mrcooll7-Jan-10 4:50 
AnswerRe: C# DataTable Pin
loyal ginger7-Jan-10 4:52
loyal ginger7-Jan-10 4:52 
GeneralRe: C# DataTable Pin
OriginalGriff7-Jan-10 5:23
mveOriginalGriff7-Jan-10 5:23 
AnswerRe: C# DataTable Pin
OriginalGriff7-Jan-10 5:19
mveOriginalGriff7-Jan-10 5:19 
QuestionCsharp .Net doubt [modified] Pin
djsproject7-Jan-10 2:59
djsproject7-Jan-10 2:59 
AnswerRe: Csharp .Net doubt Pin
Ben Fair7-Jan-10 3:03
Ben Fair7-Jan-10 3:03 
GeneralRe: Csharp .Net doubt Pin
djsproject7-Jan-10 3:08
djsproject7-Jan-10 3:08 
GeneralRe: Csharp .Net doubt Pin
#realJSOP7-Jan-10 3:17
professional#realJSOP7-Jan-10 3:17 
GeneralRe: Csharp .Net doubt Pin
dojohansen7-Jan-10 3:08
dojohansen7-Jan-10 3:08 
AnswerRe: Csharp .Net doubt Pin
dojohansen7-Jan-10 3:12
dojohansen7-Jan-10 3:12 
GeneralRe: Csharp .Net doubt Pin
djsproject7-Jan-10 3:18
djsproject7-Jan-10 3:18 
GeneralRe: Csharp .Net doubt Pin
dojohansen7-Jan-10 3:39
dojohansen7-Jan-10 3:39 
General[Message Deleted] Pin
djsproject7-Jan-10 3:26
djsproject7-Jan-10 3:26 
GeneralRe: Csharp .Net doubt Pin
djsproject7-Jan-10 3:37
djsproject7-Jan-10 3:37 
AnswerRe: Csharp .Net doubt Pin
Luc Pattyn7-Jan-10 3:39
sitebuilderLuc Pattyn7-Jan-10 3:39 
Hi,

one way to get what you want is this:
1. define a little MyImage class, containing a file name, a bitmap, a selected flag.
2. use a regular ListBox; it can show a collection of items of any type you choose (not just strings), so use it to hold instances of MyImage.
3. provide your own DrawItem handler to paint the MyImage any way you like (use Graphics.DrawString to show the file name, and DrawImage to draw a thumbnail)
4. add click and doubleclick handlers as you see fit.

As an example, this little article[^] uses an owerdrawn ListBox in order to get colored text lines.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Happy New Year to all.
We hope 2010 soon brings us automatic PRE tags!
Until then, please insert them manually.


AnswerRe: Csharp .Net doubt Pin
Lutosław7-Jan-10 12:28
Lutosław7-Jan-10 12:28 
GeneralRe: Csharp .Net doubt Pin
djsproject12-Jan-10 17:28
djsproject12-Jan-10 17:28 
Questiona problem about string Pin
Erdinc277-Jan-10 2:22
Erdinc277-Jan-10 2:22 
AnswerRe: a problem about string [modified] Pin
harold aptroot7-Jan-10 2:33
harold aptroot7-Jan-10 2:33 
GeneralRe: a problem about string Pin
Erdinc277-Jan-10 2:58
Erdinc277-Jan-10 2:58 
GeneralRe: a problem about string Pin
harold aptroot7-Jan-10 3:01
harold aptroot7-Jan-10 3:01 
GeneralRe: a problem about string [modified] Pin
Erdinc277-Jan-10 3:16
Erdinc277-Jan-10 3:16 

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.