Solved

Form Scrolling

Posted on 2003-11-04
8
400 Views
Last Modified: 2010-05-03
I want my form, (Form1) to be able to scroll with a Vscroll1 like a webpage would. So the form would enlarge verticly and scroll down. How can i do that?
0
Comment
Question by:bladefist
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 3

Expert Comment

by:NBrownoh
ID: 9681737
its kind of hard to do with a vscroll
the easiest way would be to put all your controls in a frame then have vscroll control the position of that frame.  I would just set the min of the scrollbar to 0 and the max to the height of the frame.  then with the Private Sub VScroll1_Change() event just use the vscroll.value to set the height position of the frame.

Private Sub VScroll1_Change()
    Frame1.height = VScroll1.Value
End Sub
0
 
LVL 3

Expert Comment

by:NBrownoh
ID: 9681759
oops, change the frame1.height to frame1.top
0
 
LVL 3

Expert Comment

by:NBrownoh
ID: 9681767
another oops, just do this for the change event
Private Sub VScroll1_Change()
    Frame1.Top = -VScroll1.Value
End Sub
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 1

Author Comment

by:bladefist
ID: 9681805
Well I would really like a way to scroll the form.  But i'll try that..
0
 
LVL 1

Author Comment

by:bladefist
ID: 9681822
Ok well that will be tricky too...Because as I scroll up, I'll have to keep making the frame bigger and scroll bar bigger because the frame will just scroll off the screen.
0
 
LVL 3

Expert Comment

by:NBrownoh
ID: 9681878
na you can just set the max to the height of the fram minus the height of the form, then subtract the height of the title bar and it wont go off the form
0
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 75 total points
ID: 9683785
0
 
LVL 1

Author Comment

by:bladefist
ID: 9696595
test
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

705 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