logo

Nedd Help for adding icon

Posted by biplab saha in C# .NET

24-Mar-07 02:55 AM

Hello Guys

How r u?

I have one problem that i Am Bind a list box with data set and i fill it with Datamember and Value member And now I Have to add Icon With the display member of listbox.If there is any way to do this Then Please help me AS soon as possible.

 

Thanks

Biplab Kumar Saha

 

 

 

Reply Reply Using Power Editor

I would suggest u use ListView Control instead

manish bafna replied to biplab saha

EggHeadCafe's human moderators scored this post for our messageboard contest.

24-Mar-07 03:10 AM

Hi,

I would suggest you to use ListView Control instead of ListBox.Because it very easy to add icons in ListView.Anyway if you want to go for ListBox then find below link which shows how one can override its OnDrawItem event and add icons to ListBox.

http://www.codeproject.com/cs/combobox/exListBox.asp

Hope this helps.

Thanks and Regards,

Manish Bafna.

MCP and MCTS.



Reply Reply Using Power Editor

override Ondraw event

sundar k replied to biplab saha

EggHeadCafe's human moderators scored this post for our messageboard contest.

24-Mar-07 03:17 AM

below article contains a sample for overriding the ondraw event with icons

http://www.codeproject.com/cs/combobox/glistbox.asp



Reply Reply Using Power Editor


digg facebook google buzz reddit del.icio.us stumble upon twitter

Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum










Pete's Resume  |  Robbe's Resume  |  Neado  |  Free Icons  |  Privacy  |   (c) 2010