In the panel, I draw controls, such as a button / text field, located at the beginning (0,0) of the panel. These controls are invisible and disabled at the beginning. I have a button outside the panel that makes these buttons / text box visible when clicked and positions them in a new place on the panel.
The problem is that if the user scrolls the panel to some (x, y), and then click the "make visible" button, the new (x, y) button location is calculated from the current (x, y) panel location - not from the top (0 , 0) panels.
I am wondering if this panel behavior is correct, and to fix it, I need to consider this.VerticalScroll.Value as the offset (x, y) when I rearrange the buttons.

source share