scroll bar to form

How to get scroll bar to a form, if set height and width of form to greater than the screen height and width ?

LVL 1
snayaksAsked:
Who is Participating?
 
VBGuruConnect With a Mentor Commented:
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
 
hkshijunCommented:
You can add scroll bar and code then yourself when the change event.
0
 
snayaksAuthor Commented:
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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
caraf_gCommented:
"if current window (i.e form) is enlarged to larger than the current screen size"

VB won't let you do that.
0
 
snayaksAuthor Commented:
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
 
snayaksAuthor Commented:
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
 
caraf_gCommented:
Yes... and have you tried msgbox me.height immediately after me.height = 15000?
0
 
caraf_gCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.