public class MyPanel : Panel
{
/// <summary>
/// 当Panel等容器类控件 失去焦点再获得焦点后,滚动条复位的解决方式
/// </summary>
/// <param name="activeControl"></param>
/// <returns></returns>
protected override Point ScrollToControl(System.Windows.Forms.Control activeControl)
{
return this.AutoScrollPosition;
}
}
08-21
1215

“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交
评论




查看更多评论

打赏作者
¥2
¥4
¥6
¥10
¥20
输入1-500的整数



