Datasheet

Part I: IDE
12
Saving a Project
Later chapters explain in depth how to add controls to a form and how to write code to interact with the
form. For now, suppose you have built a project complete with controls and code.
If you try to close Visual Studio or start a new project, the dialog shown in Figure 1-5 appears. Click Save
to make the Save Project dialog shown in Figure 1-6 appear. Click Discard to throw away the existing
project and start a new one. Click Cancel to continue editing the current project.
Figure 1-5: Before closing Visual Studio or starting a new project,
you must decide what to do with the previous project.
As you work with the new project, Visual Studio saves its form definitions and code in a temporary
location. Each time you run the program, Visual Studio updates the files so it doesn’t lose everything if
it crashes. The files are still temporary, however.
When you are ready to make the new project permanent, open the File menu and select Save All to
display the Save Project dialog shown in Figure 1-6.
Figure 1-6: Use this dialog to save a new project.
The Name field shows the name that you originally gave the project when you created it. Verify that the
name is okay or change it.
Next, enter the location where you want the project saved. The default location is similar to the rather
non-intuitive value shown in Figure 1-6. This image was taken while I was logged in as the user named
c01.indd 12c01.indd 12 12/18/07 3:54:56 PM12/18/07 3:54:56 PM