1. Home
  2. Computing & Technology
  3. Visual Basic

Chapter 1 - Writing Your First Program

By , About.com Guide

8 of 8

About the Code

The only two statements actually coded by the book author for this program have been shown in bold type. Everything else is automatically added by Visual Studio. As you can see, there are only two Event Subroutines in this program; one for each Button.

(We learn more about Event Subroutines in the rest of Part I. I'm just showing you what the example program looks like at this point.)

At the top of page 20, the book discusses the fundamental nature of Properties and notes that Properties can be set initially (that is, before the program is compiled and run) or while the program is running. The code for the Button1 event subroutine is an example of changing properties while the program is running.

If you "play around" with this code for a while, you'll be very well prepared for the next lesson. So it's a great way to get the jump on learning until the next lesson arrives in your email!

Explore Visual Basic
By Category
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Writing Your First Program

©2009 About.com, a part of The New York Times Company.

All rights reserved.