Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

224 Part II Programming Fundamentals


Tip Visual Basic 2010 Express does not include the Command window. (If you’re using the
Express version you will not be able to complete this exercise .)

Run the File .SaveAll command


  1. Click the Immediate Window tab to display the Immediate window.

  2. Type >cmd, and then press ENTER to switch to the Command window.


The Command window opens, and the Immediate or Watch window might now be
partially (or totally) hidden. (You can return to the Immediate window by clicking its
tab or typing immed in the Command window .) The > prompt appears, a visual clue
that you are now working in the Command window.


  1. Type File.SaveAll in the Command window, and then press ENTER.


As you begin typing File, all the Visual Studio commands associate with the File
menu and file operations appear in a pop-up list box. This Microsoft IntelliSense
feature offers a useful way to learn about the many commands that can be executed
within the Command window. After you type File.SaveAll and press ENTER, Visual
Studio saves the current project, and the command prompt returns, as shown in the
following screen shot:


  1. Experiment with other commands now if you like. (Begin your commands with menu
    names to discover the different commands available .) When you’re finished, click the
    Close button in both the Command and Immediate windows. You’re finished with them
    for now.


One Step Further: Removing Breakpoints


If you’ve been following the instructions in this chapter carefully, the Debug Test program is
still running and has a breakpoint in it. Follow these steps to remove the breakpoint and end
the program. You’re finished debugging the Debug Test program.

Tip Visual Basic 2010 Express does not include the Delete All Breakpoints command
mentioned below, so to remove breakpoints you need to delete them one by one.
Free download pdf