Nedd Help for adding icon

Asked By biplab saha
24-Mar-07 02:55 AM
Earn up to 0 extra points for answering this tough question.

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

 

 

 

  I would suggest u use ListView Control instead

manish bafna replied to biplab saha
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.

  override Ondraw event

sundar k replied to biplab saha
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

Create New Account