Setting up the project
Bring up a project, and this time let's build a simple interface with two text boxes: a button and a label. Go to View
| Toolbox
. Type tex
in the Search
field, and drag two Toolbox
TextBox
controllers into the page. You will read a couple of values from the boxes, and then you'll just check whether they're empty or not.
Now, you will need to place a Button
control that someone can click on. So again, in the Search
field, type Toolbox
but
and drag the Button
control into the page. After that, place a Label
control so that you have a place to display content, and add it into the page. Now you have a very simple interface. Your initial screen for this project should now look like the one shown in the following screenshot:

Figure 4.2.1: The initial project screen
Building your simulation
Now, before each of the TextBox
controllers, let's put a little bit of text. Let's say Enter Value:
before each TextBox
. Next, change the visible text on the Button
control so that it says...