nvenable
asked on
Horizontal scroll bar in List box
This is something a co-worker and I have spent many hours on and absolutely cannot get it to work. We have an ownerdrawn listbox... we need a horizontal scrollbar. We have referenced this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistboxclasshorizontalextenttopic.asp
Nothing... nothing at all happens. No matter what we do, we cannot get a horizontal scrollbar to appear.
We have this owner drawn because we need to fire an event to color text from the DrawItem event. Everything works except this scrolling problem.
We are using .NET 2.0 and VS2005. Anyone run into this before?
Thank you for reading this.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistboxclasshorizontalextenttopic.asp
Nothing... nothing at all happens. No matter what we do, we cannot get a horizontal scrollbar to appear.
We have this owner drawn because we need to fire an event to color text from the DrawItem event. Everything works except this scrolling problem.
We are using .NET 2.0 and VS2005. Anyone run into this before?
Thank you for reading this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was setting the HorizontalExtent and HorizontalScrollbar values, but they were getting overwitten later with incorrect data. Wow...and that only took 6 hours (between both of us tweaking on it). I feel kinda dumb. But hey, at least you answered the question correctly :~} ... I think I am going to re-write this app in a cleaner fashion.
Thank you for your assistance vo1d.