Horizontal scrollbar in VB6 (XP) weird behaviour

Posted on 2004-12-01
Last Modified: 2013-12-25
I have two horizontal scrollbars on a form, each in a different frame. When I click on the scroll arrow it keeps scrolling. I have some code in the Change event that sets a textbox value.

The problem only appeared when I added the second scrollbar and I have another form with 8 scrollbars and no problems.

One thing: there is a Smartui Tabstrip on the form at the left (vertical). Sometimes when the weird behaviour starts and I keep clicking the frames move over and cover the Tabstrip.
Question by:manno
    1 Comment
    LVL 17

    Accepted Solution

    To prevent that the frames cover the Tabstrib send a ZOrder command to the Tabstrib, like this:

    Tabstrib1.ZOrder (0)

    Then, the Tabstrib moves to the foreground.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now