Saturday, August 15, 2009

How to Save Your VB Programs?

In the pervious posting I have written a tips how to start using VB6 programming software. When you open your VB program software a project (Project1) and a form (Form1) automatically created. These are your VB programs. However at the moment they just saved in the memory of your computer, so if suddenly your computer is off the program will loose from your computer memory. You can't use your program you have created next time before you save them into your disk. In order you can use your program next time you must save your program first. After that you can reopen, reuse and edit your programs whenever you want to.

Now, how to save your VB program into your disk? Keep on reading below simple VB programming tips.
It's just a simple way to do. It's a good thing before you save your programs, you have to define first "what's your VB project name", "what's your VB form name", and "where your program will be saved in(which folder)".

For example you will save your program in a folder called D:\MyVBPrg, and your project name is MyFirstProj, and your form is MyFirstForm. Now, lets do the following instructions to save your VB program:
  • Open your windows Explorer, then create a folder called MyVBPrg in drive D: (mybe drive D:, E: etc depend on drive available on your computer)
  • Click menu File on your VB design screen
  • Click menu Save Project As...
    Look at below screen shot.
    How to Save Your VB Program

    Then a Save File As window will appear on your screen.
  • Type MyFirstForm in the cell with label File Name:
    How to Save VB Program - Type Form Name

  • Click the cell with label Save in:
  • Choose the folder D:\MyVBPrg
  • Click Save
    How to Save VB Program - Select Folder

    Then a Save Project As window will appears on your screen
  • Type MyFirstProj in the cell with label File Name
  • Click Save
    How to Save VB Program - Click Save

    Now your program's been saved already in folder D:\MyVBPrg with file name MyFirstProj.vbp (a VB Project file) and MyFirstForm.frm (a VB Form file). The extention .vbp and .frm are automatically given by Visual Basic software. Look at below image for your illustration.
    This is your VB Program

    Have you any comment? Please write down your commant in below comment box.


    Post a Comment