Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Winform 中使用 DrawingUserControl 时遇到问题。发生的事情是,当我单击用户控件以向其中添加一些绘图时,其父窗体向下滚动到控件所在的页面位。这发生在绘制完成之前,导致我试图绘制的东西被绘制在我最初单击的位置下方。
当我点击它时,有什么方法可以阻止控件获得焦点?我尝试在父级上将 autoscroll 设置为 false ,但这没有做任何事情。
谢谢