| Making New Project Templates: Selecting the New Project command
from Visual Basic's File menu, offers you a choice of project icons: Standard EXE, ActiveX
EXE, ActiveX DLL etc. You can add additional project icons to these easily, to gain quick
access to your customised projects. First, start a new project. Get it loaded the way you
want. Add controls to the toolbox, give it multiple forms and modules, add controls to the
forms, place code in the forms and modules, etc. in fact do whatever you like that you can
do in a normal project. Next, save it all in your the Projects directory. The 'Projects'
path can vary depending your OS platform and version of VB, but with VB6 and Win95/98/NT,
the default is: C:\Program Files\Microsoft Visual Studio\Vb98\Template\Projects. Otherwise
search for the template directory and then look inside for the Project directory. Save
your project in there. Give the files meaningful names. Now when you select New Project
from the File menu, the name of your project should appear in the list
Making New Form Templates:
Another useful template feature is the option to a form template from an existing form
so you can use it to design future forms. Once you've created the 'perfect' form, place it
in the \Template\Forms\ subdirectory, in the directory structure described above. Then,
the next time you wish to add a new form to your project, you'll see your cusomised forms
in the list of available form templates. This feature also applies to modules, classes,
etc. |