Snippet Master Code Repository add-in (source code included)

Applies To

OS:
VB:
NT, 9x, 2000
5, 6

Download... (32 kb)

This project is an example of building an Add-In for Visual Basic as a way of automating time consuming development tasks.  This Add-In automates the task of adding snippets of code to your projects.  It is designed to be very simple to use. 

This folder contains the  SnippetMaster Visual Basic 6.0 project and its associated DLL file.  It is an ActiveX DLL project.

System requirements

Visual Basic 6.0 and any OS capable of running VB.

 

Installation

In order to start working with this add-in, you need to register it.  There are two ways to accomplish this.  You can load the Visual Basic project and re-compile it (overwriting the original sprocwizard.dll file).  You can also open a command window and navigate to the folder containing the supplied sprocwizard.dll file and type the following:

regsvr32 "Snippet Master.dll"

This will enter the ActiveX DLL's information into the registry.  The next time you load Visual Basic you should see its menu option in the Add-Ins menu.

 

Working with the Add-In

The Snippet Master add-in allows you to insert saved snippets of code into any code window.  Simply place the cursor in the function or subroutine where the code is to be inserted, and select the Add-Ins | Snippet Master menu option.  The add-in form will be displayed.

At this point, you can select the desired snippet.  When finished, click OK (or double-click on the snippet) to insert the code.

 

Adding Snippets to the Add-In

Adding snippets is very easy.  The folder which contains the Add-In (Snippet Master.dll) also has a folder called Snippets.  Simply add a file (any file name or extention) to that folder and it will be displayed the next time the Add-in is started.

Download... (32 kb)