Scrollbars and the Anchor property

  • Thread starter Thread starter Nader
  • Start date Start date
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
 
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).
 
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.
 
Back
Top