autosrollbar does not activate

G

Guest

I have a windows form with a button on it. The button anchor property is
right and the forms autoscroll property is set to true.
When adding a second control (also anchor.right) to the left of the viewable
area, the scrollbar does not activate. Why?
When using anchor.left and adding controls to the right, the scrollbar
activates automatically. I want to have the same functionality when adding to
the left of the screen.
 
V

VJ

The scroll bar will not activate when adding to the viewable area, only if
you try to add outside the viewable area.. it will activate. Why it
activates for the other situation ?. the anchor left and adding to right is
probably making the control go out of the viewable area..

VJ
 
G

Guest

The first control is within the viewable area, the others I am adding outside
of the viewable area. When adding to the right of the viewable area the
scrollbars activate. Adding to the left of the viewable are does not activate
the scrollbars.
 
M

Mehdi

I have a windows form with a button on it. The button anchor property is
right and the forms autoscroll property is set to true.
When adding a second control (also anchor.right) to the left of the viewable
area, the scrollbar does not activate. Why?
When using anchor.left and adding controls to the right, the scrollbar
activates automatically. I want to have the same functionality when adding to
the left of the screen.

For some reason, autoscroll container controls only take into account
controls that are anchored left. The others are ignored and even if they
are outside the visible area of the container control, scrollbars won't
appear. I have never been able to find a solution to this problem. The only
thing that seems to be working properly is to implement your own
scrollbars.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top