I have Panelone in which I add controls to it dynamically. I want to scroll Panelto the position of one given controlPanel
I use the ScrollControlIntoViewobject method ScrollableControlas follows:
public void centerPanel(Control p){
panel.ScrollControlIntoView(p);
}
But the panel seems to be moving in random positions.
The property AutoScrollmatters Truein Panel.
Any thoughts?
source
share