?
Solved

scroll bar to form

Posted on 2000-03-20
8
Medium Priority
?
178 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 6

Accepted Solution

by:
VBGuru earned 60 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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