Share via


IDesktopUserActions.SetFocusOnApplication(String) Method

Definition

Requests the desktop to set focus on the application requested.

public:
 bool SetFocusOnApplication(System::String ^ applicationName);
public bool SetFocusOnApplication (string applicationName);
abstract member SetFocusOnApplication : string -> bool
Public Function SetFocusOnApplication (applicationName As String) As Boolean

Parameters

applicationName
String

Specifies the name of the application to set focus on.

Returns

True if the focus was set, otherwise false.

Applies to