关于焦点的问题,怎么让焦点一直在Form上,而不让它跑到控件上去?
public void Form1SetFocus(Control control)
{
// Set focus to the control, if it can receive focus.
if(Form1.CanFocus)
{
Form1.Focus();
}
}
非静态的字段、方法或属性“System.Windows.Forms.Control.CanFocus”要求对象引用
非静态的字段、方法或属性“System.Windows.Forms.Control.Focus()”要求对象引用