public class UserControl1 : UserControl
{
public UserControl1()
{
SetStyle(ControlStyles.Selectable, true);
}
protected override void OnGotFocus(EventArgs e)
{
base.OnGotFocus(e);
Invalidate(false
用户控件获得焦点的几种方法
最新推荐文章于 2024-07-13 19:28:07 发布