Click here to Skip to main content
16,011,428 members
Home / Discussions / C#
   

C#

 
GeneralColorPalette class Pin
Stephane David22-Feb-04 22:31
Stephane David22-Feb-04 22:31 
GeneralRe: ColorPalette class Pin
Heath Stewart23-Feb-04 9:20
protectorHeath Stewart23-Feb-04 9:20 
GeneralDisposing of Dynamic Controls Pin
Andy H22-Feb-04 22:15
Andy H22-Feb-04 22:15 
GeneralRemove text selection in an RTB Pin
Fleischen22-Feb-04 21:02
Fleischen22-Feb-04 21:02 
GeneraldirectX in C# Pin
waliop22-Feb-04 20:11
waliop22-Feb-04 20:11 
GeneralRe: directX in C# Pin
Chen Pang22-Feb-04 22:07
Chen Pang22-Feb-04 22:07 
Generallisting bitmap on ListView Pin
azusakt22-Feb-04 19:01
azusakt22-Feb-04 19:01 
GeneralRe: listing bitmap on ListView Pin
Werdna23-Feb-04 4:14
Werdna23-Feb-04 4:14 
It would be easier to inherit from ListBox and do your own custom drawing there.
You set DrawMode to DrawMode.OwnerDrawVariable (if you want to draw the bitmaps in different sizes). Then you override OnMeasureItem and OnDrawItem to do the painting.
You should create a property for your new listbox called Directory. When value is set for this property you populate private arraylist with all bitmaps in that directory. To do that you can use: System.IO.Directory.GetFiles(myDirectory, "*.bmp")
During measure item and drawitem you just draw those bitmaps.
QuestionHow to change Size of Array Pin
god4k22-Feb-04 18:23
god4k22-Feb-04 18:23 
AnswerRe: How to change Size of Array Pin
Tom Larsen22-Feb-04 18:28
Tom Larsen22-Feb-04 18:28 
AnswerRe: How to change Size of Array Pin
Corinna John22-Feb-04 20:28
Corinna John22-Feb-04 20:28 
GeneralRe: How to change Size of Array Pin
CWIZO23-Feb-04 2:54
CWIZO23-Feb-04 2:54 
AnswerRe: How to change Size of Array Pin
turbochimp25-Feb-04 11:21
turbochimp25-Feb-04 11:21 
QuestionSocketPermission usage? Pin
Dilys22-Feb-04 16:58
Dilys22-Feb-04 16:58 
GeneralOne question about drawing rectangles. Pin
weihua99@263.net22-Feb-04 13:58
weihua99@263.net22-Feb-04 13:58 
GeneralRe: One question about drawing rectangles. Pin
Corinna John22-Feb-04 20:43
Corinna John22-Feb-04 20:43 
GeneralMonitoring Activation Count Pin
kimsangwoo22-Feb-04 13:50
kimsangwoo22-Feb-04 13:50 
Questionhow to find out how much graphics card memory and how much RAM I have? Pin
SIDDHARTH_JAIN22-Feb-04 10:01
SIDDHARTH_JAIN22-Feb-04 10:01 
AnswerRe: how to find out how much graphics card memory and how much RAM I have? Pin
Mazdak22-Feb-04 11:19
Mazdak22-Feb-04 11:19 
GeneralListView with Windows Control Library Pin
Snowjim22-Feb-04 6:51
Snowjim22-Feb-04 6:51 
GeneralWorking with pixels and palette Pin
Stephane David22-Feb-04 5:24
Stephane David22-Feb-04 5:24 
GeneralRe: Working with pixels and palette Pin
Heath Stewart23-Feb-04 9:29
protectorHeath Stewart23-Feb-04 9:29 
GeneralRe: Working with pixels and palette Pin
Stephane David23-Feb-04 19:48
Stephane David23-Feb-04 19:48 
GeneralRe: Working with pixels and palette Pin
Stephane David23-Feb-04 21:55
Stephane David23-Feb-04 21:55 
GeneralRe: Working with pixels and palette Pin
Heath Stewart24-Feb-04 3:03
protectorHeath Stewart24-Feb-04 3:03 

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.