Solved

scroll bar to form

Posted on 2000-03-20
8
174 Views
Last Modified: 2010-05-02
How to get scroll bar to a form, if set height and width of form to greater than the screen height and width ?

0
Comment
Question by:snayaks
8 Comments
 

Expert Comment

by:hkshijun
ID: 2635717
You can add scroll bar and code then yourself when the change event.
0
 
LVL 1

Author Comment

by:snayaks
ID: 2635808
I dont want to use "scroll bar control" What I mean whether any API fuctions are there which will give automatic scroll bar (as it comes in listbox) if current window (i.e form) is enlarged to larger than the current screen size ?

If possible, later I want to take print out of that window, after capturing it to clip board.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2635843
"if current window (i.e form) is enlarged to larger than the current screen size"

VB won't let you do that.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 6

Accepted Solution

by:
VBGuru earned 20 total points
ID: 2635850
Yes, you can add the scroll bar to your form throw API and evenn you can control them, for full description about these aPIs and sample example check out
http://vbaccelerator.com/codelib/ssubtmr/sbrclass.htm
0
 
LVL 1

Author Comment

by:snayaks
ID: 2635863
Hello Ccaraf,
it is possible. Check giving this in Form_Load event    me.height = 15000.
Keep form's window status = 0(i.e normal)


0
 
LVL 1

Author Comment

by:snayaks
ID: 2635865
Hello caraf,
it is possible. Check giving this in Form_Load event    me.height = 15000.
Keep form's window status = 0(i.e normal)


0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2635893
Yes... and have you tried msgbox me.height immediately after me.height = 15000?
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2635906
example: in Form_Load

Height = 20000 'had to use a larger number as my screen is 1280x1024
Debug.Print Height
'gives 15540, not 20000. VB does not allow form heights significantly greater than the screen resolution.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

810 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