Testing Operators and Expressions

Reading about operators and expressions might be great fun, but the real excitement comes from coding and testing them. The purpose of this exercise, therefore, isn’t to mimic a small fraction of a real program’s capabilities. Instead, the purpose is to show you how to run experiments and test your work. Are you ready? Follow these steps:

  1. Start Visual Studio, open the New Project dialog box, and create a new project named expressions.

  2. Select the default form and set its Text property to Expression Test.

  3. Add a button to the form. Set its name to btnTest and its Text property to Test.

  4. Double-click the button. Your screen should now resemble Figure 4-1.

    Figure 4-1. Any code you enter between the Private Sub btnTest_Click ...

Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.