How to place border to the item selected in the listbox?

M

manju

Hi All,

I'am using Vb.net 2005.I want to develop an application in which I have
listbox control with 2 columns in it. In first column string is
displayed and in other column colored labels are displayed. Now
whenever i select item from a listbox it shows blue color filled into
that row. Instead of this i want whenever user selects item from
listbox some rectangular border is placed thorugh the item.

For a look it is there in Microsoft publisher color scheme.
Please let me know how to do it.
Thank You in advance.

-Manju
 
H

Herfried K. Wagner [MVP]

manju said:
I'am using Vb.net 2005.I want to develop an application in which I have
listbox control with 2 columns in it. In first column string is
displayed and in other column colored labels are displayed. Now
whenever i select item from a listbox it shows blue color filled into
that row. Instead of this i want whenever user selects item from
listbox some rectangular border is placed thorugh the item.

Check out the listbox' 'DrawMode', 'DrawItem', and 'MeasureItem' members.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top