public class CustomPanel : System.Windows.Forms.Panel
{
protected override System.Drawing.Point ScrollToControl(System.Windows.Forms.Control activeControl)
{
// Returning the current location prevents the panel from
// scrolling to the active control when the panel loses and regains focus
return this.DisplayRectangle.Location;
}
}
http://nickstips.wordpress.com/2010/03/03/c-panel-resets-scroll-position-after-focus-is-lost-and-regained/
'library > .NET' 카테고리의 다른 글
static 클래스 초기화 주의 (0) | 2020.08.13 |
---|---|
예외처리 (0) | 2019.06.27 |
wcf 프로젝트 설정 (0) | 2011.09.05 |