Horizontal scroll bar in List box

Posted on 2006-05-26
Medium Priority
Last Modified: 2012-05-05
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:
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.
Question by:nvenable
LVL 11

Accepted Solution

vo1d earned 1000 total points
ID: 16769865
why dont you just set the HorizontalScrollbar property to true and let the HorizontalExtent at 0? is the scrollbar then visible?

Author Comment

ID: 16769948
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.

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question