• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 687
  • Last Modified:

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
0
chokka
Asked:
chokka
  • 7
  • 6
  • 3
1 Solution
 
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
 
chokkaAuthor Commented:
I removed the Scroll bar .. while the picture was taken ..

i had some build issues ..

so i need to remove it ..
0
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Confused now.  What is it you need help with then?
0
 
chokkaAuthor 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
 
chokkaAuthor Commented:



You can see the screen shot ..!

Thats the issue i am facing in the Vertical Scroll Bar
IssueinScrollBar.JPG
0
 
chokkaAuthor Commented:
I am physically adding the Scroll Bar from Tool Box .. to the Form Page
0
 
Mike TomlinsonMiddle 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
 
chokkaAuthor 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
 
chokkaAuthor 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
 
chokkaAuthor Commented:


size of the form is 988, 763
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 7
  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now