How to add a separator bar in a listbox?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I seem to remember in VB6 that one could add a string item consisting of two
hypens and that would force a line to be drawn in a listbox.

How does one add a separator bar in a listbox in C#.net?
 
I have never heard of that trick, but .NET listboxes support owner-draw
(DrawMode property), so you can do it easily.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
hi,

AFAIK there is nothing ilke that the framework, what you can do is draw it
yourself, take a look at OwnedDrawListControl in www.opennetcf.org

cheers,
 
Back
Top