Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:32:58+00:00 2026-06-15T22:32:58+00:00

My Windows Application in VB 6 is having a form that contains hell lot

  • 0

My Windows Application in VB 6 is having a form that contains hell lot of controls. And if the screen size at client’s environment is smaller, most of the controls do not appear.
What I want to do is to provide users a vertical and horizontal scrollbar so that user can scroll across all controls.
Anyone having any idea of how to implement this?

P.S. Please do not provide examples showing just labels to display scroll value 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:33:00+00:00Added an answer on June 15, 2026 at 10:33 pm

    I like David’s answer, but if you want to do this with the scrollbars, first, you need to put all of your controls into a frame that fits them. You want to move 1 control not a “hell of a lot of controls”. Second put your scroll bars into the form and in the Form_Resize event add some code to resize the scroll bars with the form. After resizing the scrollbar you need to do some math to set the Max, SmallChange, and LargeChange properties. I am showing the Min property just so you know it never changes, just set it in the designer. This example uses only a horizontal scrollbar because I am too lazy to include a vertical scrollbar too. Finally, add code to the scrollbar Change event to move the frame around.

    Private Sub Form_Resize()
    
        HScroll1.Move 0, Me.ScaleHeight - HScroll1.Height, Me.ScaleWidth
        HScroll1.Min = 0
        HScroll1.Max = Frame1.Width - Me.ScaleWidth
        HScroll1.SmallChange = HScroll1.Max / 100
        HScroll1.LargeChange = HScroll1.Max / 10
    
    End Sub
    
    Private Sub HScroll1_Change()
    
        Frame1.Left = -HScroll1.Value
        DoEvents ' this is not strictly necessary, but smooths the scolling some
    
    End Sub
    

    You also need error handling code. I am a lazy example coder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing window application in that I am having 2 child windows on
I have a Windows Forms application that I'm working on, but I'm having trouble
I'm new to c# Windows Form Application and I'm having a problem in adding/inserting
I am having trouble cutting down my string. I have a windows form application
I have a Windows Form desktop CRUD application. The users are finding that if
Background : I have a C# Windows Forms application that contains a Windows service
I want to make a Windows application in ansi C but I am having
I am having a problem with my Windows Phone application. When I get the
I ran dotTrace on my application (which is having some issues). IntPtr System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr,
We're having problems with Windows silently eating exceptions and allowing the application to continue

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.