Link to home
Start Free TrialLog in
Avatar of nvenable
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.
ASKER CERTIFIED SOLUTION
Avatar of vo1d
vo1d
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nvenable
nvenable

ASKER

Oh no!  I just realized something!  I picked this project up from my co-worker and realized that he set the scrollbars in the wrong place in the code.  The settings were getting overwritten after I set them in another place.

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.