I have a Windows Forms app developed with Visual C# 2010 Express in Windows 8. The main form has a panel that contains/displays a different UserControl (UC)depending on what node the user selects in a TreeView that's in a separate panel. Prior to getting a new laptop, the UCs fit in the panel without scrolling, but my new computer's screen is shorter, which makes the UCs too big and triggers the vertical scroll bar to appear. No surprise so far.
The problem is that if I: (1) scroll down in UC1; (2) trigger display of a UC2 by clicking its corresponding node in the TreeView; and (3) return to UC1 by clicking its corresponding node in the Treeview, the top of UC1 is cutoff and scrolling up only takes me only to the place where UC1 was cutoff when I first scrolled. In other words, it's as if the top of UC1 has been permanently chopped off, even though I can still scroll.
If it helps...prior to the initial scrolling, UC1's properties are Top = 0 and Bottom = 570. After the scroll, Top = -28 and Bottom = 542. What am I missing?
Thanks,
Steve