Create the application interface
Create a button for inserting data into the database, a button for querying the database, and a label that displays the query results.
-
Create the Insert button:
- In Project view, expand UI.
- Right-click MainWIndow (type) and select .
-
Hover-over the button, select
, and enter InsertButton.
- In Properties, set Text to Insert Random Data.
-
Create the Run Query button:
- Right-click MainWIndow (type) and select .
-
Hover-over the button, select
, and enter RunQueryButton.
- In Properties, set Text to Display Query in Label.
-
Create the query result label:
- Right-click MainWIndow (type) and select .
-
Hover-over the label, select
, and enter QueryResultLabel.
- In Properties set Text to Query Results....
- Arrange the interface elements.
