Datasheet
You may be wondering what Me is. Me is a keyword that refers to the form. Just like the pronoun
me, it is just shorthand for referring to one’s self.
4. Now that the code is finished, the moment of truth has arrived and you can see your creation.
First though, save your work by using File ➪ Save HelloUser.vb from the menu or by clicking
the Save button on the toolbar.
5. Now click the Start button on the toolbar. You will notice a lot of activity in the Output window
at the bottom of your screen. Provided you have not made any mistakes in entering the code,
this information just lets you know which files are being loaded to run your application.
It is at this point that Visual Studio 2005 will compile the code. Compiling is the activity of taking
the Visual Basic 2005 source code that you have written and translating it into a form that the
computer understands. After the compilation is complete, Visual Studio 2005 runs (also known
as executes) the program, and you’ll be able to see the results.
If Visual Basic 2005 encounters any errors, they will be displayed as tasks in the Task List window.
Double-clicking a task transports you to the offending line of code. We will learn more about how to
debug the errors in our code in Chapter 9.
6. When the application loads, you see the main form. Enter a name and click OK (or press the
Alt+O key combination) (see Figure 1-18).
Figure 1-18
7. A window known as a message box appears, welcoming the person whose name was entered in
the text box on the form — in this case Stephanie (see Figure 1-19).
Figure 1-19
20
Chapter 1
04_574019 ch01.qxd 9/16/05 9:43 PM Page 20