Hi, I have a form with a TabPage, in this TabPage there is a child form displayed, this child form has AutoScroll set to true, however when this form is loaded it is automatically scrolled to the bottom. How do I go about loading the child form scrolled to the top?
CodePudding user response:
Fixed by using Hans Passant answer, the scroll position was affected by the TabIndex property.
CodePudding user response:
Set the AutoScrollPosition of the scrollable form to 0 after everything has been loaded.
Form1.AutoScrollPosition = new Point(0, 0);