Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

138 Part II Programming Fundamentals



  1. Click the Date type in the list box.


The date 3/1/1963 appears in the Sample Data box.


  1. Click each data type in the list box to see how Visual Basic displays it in the Sample
    Data box.

  2. Click the Quit button to stop the program.


Now you’ll examine how the fundamental data types are declared at the top of the
form and how they’re used in the ListBox1_SelectedIndexChanged event procedure.


  1. Double-click the form itself (not any objects on the form), and enlarge the Code Editor
    to see more of the program code.
    The Code Editor looks like this:

Free download pdf