Create a button to restart the system

Create a button to close the application. Use this button to restart the system.
Restart the system to have any date and time changes from the
Date and time configurator
widget take effect.
  1. In
    Project view
    , right-click the folder to contain the button object and then select
    New
    Base controls
    Button
    .
  2. In
    Project view
    , select the
    Button
    #
    (type)
    object.
    The events related to the object appear in
    Properties
    under
    Events
    .
  3. Next to the event that you want to have close the application, select
    Add
    Add net method
    .
  4. Expand the
    Core commands
    node, select
    Close
    , and then choose
    Select
    .
  5. Next to the same event, select
    Add
    to add
    net method
    again.
  6. Expand the
    Core commands
    node, select
    Restart
    , and then choose
    Select
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.