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

  • Thread starter Thread starter manju
  • Start date Start date
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
 
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.
 
Back
Top