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!

Scrollbar messes up vertical position of anchored buttons

Status
Not open for further replies.

DotNetter

Programmer
May 19, 2005
194
US
I have a form with two buttons in the lower-right hand corner that I've anchored with the Designer to the top-left. My form's Minimum, Maximum, and starting size are all fixed at the same size, i.e. it won't be resized. At one point in my app, there is more stuff than fits on the form vertically, so the form's AutoScroll=True property kicks in and scrollbars (appropriately) appear.

Here's the problem: when the scrollbars are present, the form is displayed with the two buttons drawn in the lower-right corner of the form. But when the user scrolls down, the two buttons scroll up with the rest of the form and their resulting vertical position is somewhere in the middle of the form.

How do I ensure that these two buttons are always at the actual bottom-right corner of the form - and when scrollbars are present, it should be necessary to scroll down to see the buttons in the corner?

Thanks!
Dot
 
Have you8 tried anchoring to Bottom Right instead of Top Left.


Hope this helps.

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top