AutoScroll issues with custom layout on Windows Forms application
Posted
by Lurker Indeed
on Stack Overflow
See other posts from Stack Overflow
or by Lurker Indeed
Published on 2010-03-25T04:05:10Z
Indexed on
2010/03/25
4:13 UTC
Read the original article
Hit count: 528
I've implemented a basic custom layout engine in Windows Forms that does control sizing and positioning. I was hoping to allow the AutoScroll features to work untouched, but any time I have enough controls on the screen to require a scroll bar, some of the layout events that get fired (i.e, a rich text box that expands the height as it types) not only fire the layout events, but they force the scroll bar back at (0,0).
Do I have any options besides looking at the scroll position and positioning the controls manually based on that?
© Stack Overflow or respective owner