COMPUTER TRAINING: Working with Files

Monday, 24 December 2012

Working with Files

Working with Files
 
Saving Project or Files
 
Now you have created application, so you have to save the application.
 
Steps:
 
1. Go to File Menu.
2. Select Save project option .
3. Select Save project As. , if you want to save the project under a different name.
VISUAL BASIC project will be saved with the extension .vbp.
4. Now select Save Formname option.
A form will be saved with the extension .frm.
5. Click on Save button on the title bar OR
You can use Key Combination Ctrl+S for Saving Project and forms.
 
The window look like below:
 
 
For saving a form file, window will look like:
 
 
Note that:
If you want to change the name of your project then:
 
1. Go to project menu.
2. Select Project Properties.
 
The window will appear like below:
 
 
Now change the name of the project and click OK.
 
Important:
 
It is important to be noted here that project name and project file name are different.
Same is true in case of forms. Form name and form file names are different.
 
 
 
 
Working with Files
 
Opening Existing Project
 
Suppose you have to open a existing project, then follow the steps below:
 
1. Go to the File Menu.
2. Click on to the open project project.
3. Click on the Open button on the title Bar OR You can use Ctrl+O for opening a existing project.
 
The window looks like below:
 
 
 
 
 
Working with Files
 
Adding a File To The Project
 
You can add a file form different project in your project. You can share files between projects.
If you add a file to a project, you are simply including a reference to the existing file in the project. you are not adding a copy of the file to the project.
 
Therefore, if you make changes to the file and save it, your changes will affect any project that includes the file.
 
Steps for adding files:
 
1. Go to project menu.
2. Select Add File option OR Use Ctrl+D for adding file.
 
The following Dialog box will appear:
 
 
Select required file and Click Open.
 
 
 
 
Working with Files
 
Removing File From The Project
 
If you want to remove a form file from an existing project than:
 
1. Go to project Explorer Window.
2. Select form which you want to remove.
3. Right click on that. A pop menu will appear like that:
 
 
 
 
 
Working with Files
 
Removing Project
 
For removing the entire project two methods can be used:
 
1. Go to the file menu than select Remove Project.
2. Go to the project Explorer Window.
3. Select the project which you want to remove.
4. Right click on that. A pop menu willappear like that:
 
 
You can also use Atl+F+R for removing the entire project.
 
 
 
 
Working with Files
 
Exiting From Visual Basic
 
For existing Visual Basic IDE, you Simply Go to file Menu and Click Exit. Menu will look like below:
 
 
You can also use Alt+Q for Exit.
 
 
 
 

No comments:

Post a Comment