Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some issues with scroll bars in a form

Filip Brnic

Programmer
Dec 25, 2023
43
RS
Hi, I ran into this issue because i accidentaly changed/resized my form and im literally stuck trying to fix this for an hour, Someone told me that i need to put something outside of the part that is viewable/that you can see but it literally does not work, can someon just hop in my form and help me? Here is a reference to how much width i want it to be. its in a zip file, just remove the 1 before the extension ( i tried to make a new form and tested how to make the scrollbars visible and it worked, but for some reason the same principe doesnt work in my main form)1730114355395.png
 

Attachments

  • zip1 - Copy - Copy - Copy.zip
    46.1 KB · Views: 5
hit the fullsize button ,,,
 

Attachments

  • evidencijaprethodnogporeza1.zip
    48.6 KB · Views: 2
Can you open the form in the Form Designer? If so, right-click on each of the following properties in turn, and choose "Rest to Default" : Top, Left, Height and Width.

Mike
 
There are exactly two ingredients to make scrollbars visible on a form:
1. Objects outside the visible area of the form, right of the right margin or under the bottom margin.
2. The forms Scrollbars property set to 3 for both scrollbars.
There's no complicated science behind that, just two things that both have to be present - controls off the visible area and the form.scrollbars property set.

The scrollbars then aree also visible already in the deesigner.

The screenshot you show seems to be a form with large height, that doesn't cause a scrollbar, that just causes the bottom of the form area to be off the designer or desktop size. The form itself remains small, you put controls into coordinates below the bottom of the form by setting their top property higher than the height of the form, you don't rais the form height, that's not causing scrollbars, that's mking the form higher than the screen and designer can show them.
 

Part and Inventory Search

Sponsor

Back
Top