Adding Form Navigation Buttons

How to:

When you ran your application and displayed the Show Fan Club Members form, you may have noticed that the only thing you can do in this window is close the form by closing the browser.

Add some navigation buttons to the FanClub application:

Procedure: How to Add a Back Button

  1. Open the ShowFan form.
  2. On the Components tab, click Button.
  3. Draw a button under the HTML table.
  4. Change the text on the button to Back.
  5. Change the name and the unique identifier of the button to BackButton.
  6. Create a new case called OnBackButton_Click and type Winform Show Form1; in it.
  7. Add a task to call the case.
  8. In the Tasks & Animations panel, select Click for the Trigger Type and select BackButton for the Trigger Identifier.
  9. In the Tasks & Animations panel, from the Requests/Actions section, select Run Request, then select Start, and then select Start.OnBackButton_Click.

Procedure: How to Add an Exit Button

  1. Open Form1.
  2. Place an Exit button named ExitButton at the bottom of your form.
  3. Create a new task for the click of the Exit button to call the disconnect request from a task.
  4. In the Tasks & Animations panel, select Click for the Trigger Type and select ExitButton for the Trigger Identifier.
  5. In the Tasks & Animations panel, from the Requests/Actions section, select Run Request, then select Start, and then select Start.Disconnect.
  6. Run your application to see how it looks.
  7. Click the Exit button to close the application.