Windows App - Vertical Scroll Bar is not working - VB.Net / VS 2005


VS 2005 / Vb.Net

I am working on Windows APP, and i have a big form which is about 780 Pixel Height ..!

My vertical Scroll bar is not working ..!


Page1.JPG
chokkaStudentAsked:
Who is Participating?
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Gotcha...a VScrollBar has ABSOLUTELY NO INHERENT ability to scroll the the form or anything else.  It is simply a slider bar that allows the user to pick a value using the arrows and the slider.  To make a VScrollBar actually scroll the form you would need to manually add code that detects the scrolling events and then changes the contents of your form.

The "correct" way to allow scrolling on a Form is to set the AutoScroll() property to True and then the vertical/horizontal scrollbars will automatically appear if controls are placed OUTSIDE the visible area of the form.
0
 
Mohit VijayCommented:
have you set the scrollbar property for form?
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
The scrollbar should appear if you have CONTROLS beyond the visible area of the Form itself.

The picture doesn't quite show us the whole story, but it looks like the form is big enough to hold the controls, but the Form is actually extending beyond the edges of the SCREEN which is a completely different scenario.

Scrollbars won't appear when the form is paritally off the screen...
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 
chokkaStudentAuthor Commented:
I removed the Scroll bar .. while the picture was taken ..

i had some build issues ..

so i need to remove it ..
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Confused now.  What is it you need help with then?
0
 
chokkaStudentAuthor Commented:


I temporarily removed the scroll bar as i need to keep the screen shot,

My issue is very clearly posted,

Windows App - Vertical Scroll Bar is not working - VB.Net / VS 2005

If you have suggestion to fix the issue, please share ..!
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Ok...are you using AutoScroll() or did you physically add a VScrollBar to your Form?
0
 
chokkaStudentAuthor Commented:



You can see the screen shot ..!

Thats the issue i am facing in the Vertical Scroll Bar
IssueinScrollBar.JPG
0
 
chokkaStudentAuthor Commented:
I am physically adding the Scroll Bar from Tool Box .. to the Form Page
0
 
chokkaStudentAuthor Commented:


I am not able to see - AutoScroll Property under Scroll Bar
ScrollBar.JPG
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
It's not there.  Get rid of the VScrollBar!...

Set the AutoScroll() Property of the FORM ITSELF to True.

0
 
Mohit VijayCommented:
Please see attached Image, It will answer your question...
Capture.JPG
0
 
chokkaStudentAuthor Commented:
i did it .. but  i am able to see the lower end of my form
0
 
Mohit VijayCommented:
You can try form property TopMost as True.
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Don't quite understand your last statement chokka....could you re-word that a different way?

If you make the form smaller then the scrollbars will appear and the form may fit on the screen....?
0
 
chokkaStudentAuthor Commented:


size of the form is 988, 763
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.