You're not really giving enough information but assuming that you've got a Panel
(or another control that inherits from ScrollableControl
) on your form that contains all the other controls and that is the control that the user has scrolled in you could probably do the following:
Handle the Resize
event and store panel1.HorizontalScroll.Value
somewhere when it's minimized and when it's maximized the Resize
event will be called again and you could then set panel1.HorizontalScroll.Value
to the stored value.
Handling the Resize
event isn't a perfect way to catch minimize and maximize but it would probably work well enough since otherwise it would get a bit more difficult.