DataSourceControl.Focus DataSourceControl.Focus DataSourceControl.Focus DataSourceControl.Focus Method

定义

为控件设置输入焦点。Sets input focus to the control.

public:
 override void Focus();
public override void Focus ();
override this.Focus : unit -> unit
Public Overrides Sub Focus ()

异常

尝试调用 Focus() 方法。An attempt was made to call the Focus() method.

注解

由于控件没有可视呈现, 因此对其Focus调用NotSupportedException方法会引发异常。 DataSourceControlBecause the DataSourceControl control has no visual rendering, calling the Focus method on it throws a NotSupportedException exception.

适用于

另请参阅