Solved

scroll bar to form

Posted on 2000-03-20
8
176 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
[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
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
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.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library 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…

726 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