Username:
Password:
Microsoft Visual Basic 2005 Tutorials

Saving & Executing Projects / Saving the Original Project

Subtitles of the Movie

In this movie I will focus on the save process. When you first create a project and you're ready to save it for the very first time it is important to understand exactly how to do so and when you save the project what files are being saved and where. As you can see, I have a form ready to be saved and I simply will click File, Save all. By clicking Save all I now bring up the Save project dialog box. In this Save project dialog box I can specify the name of the project, where I want the file to be saved, I can also specify to create a directory for the solution. I strongly suggest that you follow the default which is to create the directory for the solution. As you'll discover when you save the project even a very simple project, there will be many files and multiple folders inside of a single project. So it's best to create a directory for that solution so that you have all the files in one location. When I first created this project I gave it the temporary name of Sample. I could choose to change that name at this point but I will leave the name Sample. I could also use the Browse button to go to a different location on my computer but I'm allowed to go to the drive C into a folder called VTC into a subfolder called VB demo and work files. The solution name by default is the same name as the project. Again, my suggestion is to leave that the same name. By clicking the Save button, the project is then saved and I'll now navigate to the location on my computer where this project has been saved so we can see the actual files that have been saved. As you can see, there is a folder called Sample that was just saved on my computer. If I open the folder called Sample you will see there is another folder called Sample and there is a file called Sample. This file is known as the Visual Studio solution file. This is the one file that you will want to create and you will want to access directly once you have created a file. You should resist the temptation of opening any of file that gets created. For example if I open the sample file you'll see there are multiple files that are open and there are multiple folders. And there are files within all these folders. Now these are all very necessary files and depending on the complexity of your project you may have more or less of these files. But the important thing to note is that you should always only work with the solution file. If I change my view to details, you will see that this has a name of Visual Studio Solution. It will look like this in the icon view. So the solution file is the one file that you will want to work with. In fact, from this point forward, if I were to come back at a later time, I could simply double click on the solution file and it will automatically launch Visual Studio for me and inside Visual Studio it will launch the sample file. Now once your file is re-launched into Visual Studio you may notice that the file is there, it says Sample at the top but you don't see the actual form visible. You need to go to the solution explorer, if the solution explorer is not open, click on View, Solution Explorer and simply click on form1.vb and there you will see the project that you now have saved. At this point, any other changes you would make to this project, the simplest way to save this was simply to use the Save all icon on the toolbar. This way, you're updating your project and it now knows where you want to save your project. If you want to make a duplicate copy of this, we will discuss that in a later movie.

Tutorial Information

Course: Microsoft Visual Basic 2005
Author: Arthur Lee
SKU: 33940
ISBN: 1-935320-10-6
Release Date: 2008-11-19
Duration: 7.5 hrs / 97 lessons
Work Files: Yes
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 81,350 Video Tutorials (20,800 free)
  • Video Available as Flash or QuickTime
  • Over 782 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available