Find Control with Key Focus
- Updated2025-07-30
- 1 minute(s) read
Return a reference to the control that currently has key focus. If there is not a control with key focus in the target VI, Not a Refnum is returned.
Parameters
| Name | Data type | Required | Description |
|---|---|---|---|
| Control Found? | ![]() |
Yes | Indicates the control that has key focus. |
Remarks
The following table lists the characteristics of this method.
| Short Name | FindCtrlWithKeyFocus |
| Data type | ![]() |
| Available in Run-Time Engine | Yes |
| Available in Real-Time Operating System | No |
| Settable when the VI is running | Yes |
| Loads the front panel into memory | Yes |
| Need to authenticate before use | No |
| Loads the block diagram into memory | No |
| Remote access allowed | No |
| Must wait until user interface is idle | No |
| Available with control VIs | Yes |
| Available with global VIs | Yes |
| Available with strict type definitions | No |
| Available with polymorphic VIs | No |

