Solved

scroll bar to form

Posted on 2000-03-20
8
171 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
Comment Utility
You can add scroll bar and code then yourself when the change event.
0
 
LVL 1

Author Comment

by:snayaks
Comment Utility
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
Comment Utility
"if current window (i.e form) is enlarged to larger than the current screen size"

VB won't let you do that.
0
 
LVL 6

Accepted Solution

by:
VBGuru earned 20 total points
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Author Comment

by:snayaks
Comment Utility
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
Comment Utility
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
Comment Utility
Yes... and have you tried msgbox me.height immediately after me.height = 15000?
0
 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now