Groups | Blog | Home
all groups > dotnet general > october 2005 >

dotnet general : ListBox OwnerDrawVariable


Max
10/31/2005 4:58:21 PM
Hello,

I have a multi line listbox which I paint using DrawItem and MeasureItem, the latter I use to compute the height of each entry.
The problem I have is that the horizontal scroll bar is not displayed when an entry has some long line of text in it. Can anyone
help?

Cheers,
Max.
Siva M
11/1/2005 2:56:02 AM
Did you set the HorizontalScrollbar property to true?

[quoted text, click to view]
Max
11/1/2005 8:49:39 AM

Yes, I did and it's not working which is weird because the vertical bar becomes visible when there is a lot of text, but not the
horizontal bar. I use the example at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistboxclassmeasureitemtopic.asp





[quoted text, click to view]
AddThis Social Bookmark Button