Scrollbars and the Anchor property

N

Nader

Hi,
I have a from with the autoscroll property set to true. On this form I
have a button with the anchor property set to AnchorStyles.right. When
pressing the Button I want to add another button to the form at
location (-100, 0). The new button anchor property is also set to
right. The new button is added but the Horizontal scrollbar is not
activated. WHY?

nader
 
G

Guest

The below doesn't really make sense. Why are you setting the location of the
new Control to -100, 0? This is off the viewable Control space. What else
are you doing because when I write the code you state below the new control
instance is off the screen and unreachable (unless the width is > 100 + left
border).
 
N

Nader

When placing a control to the right of the screen, the DisplayRectangle
is expanded and the scrollbars are activated to allow you to scroll to
the control. I want the same functionality to the left of the screen.
And I dont want to use RightToLeft Layout cause it should work in all
directions: Right, left, above and below the screen.
 

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