Solved

Form expansion

Posted on 2009-03-30
5
133 Views
Last Modified: 2013-12-26
How to make up and down scroll bar to show the entire form of the project?
My project has a lot of command button that accommodate the entire form. I need to expand it but i do not know how? Please give me some ideas or example on how to make it...
Thanks
0
Comment
Question by:Whing Dela Cruz
[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
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 24021908
You could put the controls on a frame and vary the value of the frame's Top property with the value of a vertical scroll bar.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 24021929
Another idea is to use a tab control and to group the controls on different tabs.
0
 

Author Comment

by:Whing Dela Cruz
ID: 24024676
can you give me some examples? i do not know how to start it!
thanks!  
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 24026551
OK. I will assume that you want to use the first suggestion.
Select the existing controls. Cut (Ctrl+X) them to the clipboard.
Place a large frame control on the form. Then paste (Ctrl+V) the orginal controls on to the frame. If necessary, you can adjust the frame height in the properties window so that it is larger than the form.

There isn't all that much code.
Option Explicit
 
Private Sub Form_Load()
    'Frame1 is larger than the form.
    'Let the scroll bar span the difference
    VScroll1.Max = Frame1.Height - Form1.ScaleHeight
End Sub
 
 
Private Sub VScroll1_Change()
    Frame1.Top = -VScroll1.Value
End Sub

Open in new window

0
 

Author Closing Comment

by:Whing Dela Cruz
ID: 31564422
Thanks so much!
The code is working and i'm now starting my program..
thanks! more power!
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

688 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