Create a button that shuts down the host system
Add a button that shuts down the host operating system on which the FactoryTalk Optix Application runs.
Important: Pressing Shut down system immediately shuts down the host operating system on which the FactoryTalk Optix Application runs.
- In Project view pane, right-click MainWindow (type) and select .
-
Hover-over the button, select
, and enter ShutDownSystemButton.
- In Properties, set Text to SHUT DOWN HOST SYSTEM.
-
In Events, next to MouseClick event, select
and select .