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

Chapter 1 - Writing Your First Program

By , About.com Guide

3 of 8

When is a test not a test?

Save Options

Save Options

When is a test not a test? Answer: When you run it in Visual Studio .NET.

The discussion of saving projects leaves out one detail that may trip you up if you are used to the default VB 6 way of managing files. (You can change the default behavior of both VB 6 and VB.NET, however. More on the VB.NET changes later.) Because VB 6 programmers have learned that by default, VB 6 doesn't actually save your project until you specifically tell it to, you can make a temporary change to something "just to try it out" as long as the project isn't saved. In VB 6, you can always reload the project and restore everything to the way it was.

The VB.NET default saves your project every time you run it. So if you decide to make some changes just to experiment, you have to use the EXCELLENT Undo function (in the Edit menu) to back them out again. But this, like the rest of VB.NET, is actually a vast improvement most of the time. For example, if your program crashes for some reason when you run it, the source has already been saved! If you forget to save in VB 6, you get to enter your code again - if you can remember what it was.

Or, you can take the suggestion of About Visual Basic reader Neil Crosby and just change the VB.NET option. Select the Tools > Options menu and then Projects and Solutions under Environment.

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.