星期四, 三月 25, 2010

Prevent child control scrolling parent on focus

Prevent child control scrolling parent on focus

Override ScrollToControl on the container control/form and return Point.Empty when you don't want to rely on normal behaviour.



protected override Point ScrollToControl(Control activeControl)

{

return Point.Empty;

//return base.ScrollToControl(activeControl);

}

没有评论:

发表评论