.NET Events
- Updated2023-02-17
- 1 minute(s) read
.NET Events
.NET events are actions that affect a .NET object, such as clicking a mouse, pressing a key, or receiving notifications about running out of memory or tasks completing. When a .NET action occurs, the .NET object sends an event and event-specific data to alert the .NET container. The .NET object defines the events available to itself.
- .NET object you want to generate an event for.
- Register Event Callback node to specify and register for the type of event you want to generate.
- Callback VI that contains code to handle the .NET event you specify.
To register a .NET object for an event, wire the .NET object to the Register Event Callback node and specify the event you want to generate for that object. After you register for the event, create a callback VI that contains code to handle the event. If you change the event after you create a callback VI, consider that different events might have different event data formats and check for broken wires on the diagram.
Related Information
- Callback VIs
A callback VI contains code to handle a .NET event you specify.
- Registering and Handling .NET Events
To handle a .NET event, you must register for the event and create a callback VI to handle that event.
- .NET Events
.NET events are actions that affect a .NET object, such as clicking a mouse, pressing a key, or receiving notifications about running out of memory or tasks completing.
- Register Event Callback