dcsimg
December 4, 2016
Hot Topics:

Creating a Visual Basic 6 Add-In

  • November 19, 2002
  • By John Cunningham
  • Send Email »
  • More Articles »

Step 1: Create a new Sub Folder in your Visual Basic Directory called ConverterAddIn. (The VB Folder is usually located under C:Program FilesMicrosoft Visual StudioVB, so your new Sub Folder would be "C:Program FilesMicrosoft Visual StudioVBConverterAddIn").

When we selected Add-In from New Project Type we opened the Add-In Designer Template. This template is located in the "...VBTemplateProjectsAddIn.vbp" directory. If we were to make any changes to the Template's Form or Designer and save them, the changes would be saved to the that folder and could lead to confusion at a later date. So by creating a new Folder, ConverterAddIn, renaming the Form to frmConvert and renaming the Project to ConverterAddIn we have put our project in it's own Folder and managed to avoid any possible trouble with future add-in projects and their associated designers.

Step 2: Start Visual Basic and from the File Menu select "New Project". From the New Project Dialog, select "AddIn" and click on the OK Button.

New Project Dialog Box
New Project Dialog Box

VB removes the existing form and replaces it with the "ADD-IN Designer Template".

In the Project Window, click on Forms and Designers to expand them as shown below. Also double click on frmAddIn to expose it.

If you were to Run this program in it's current state from the VB-IDE nothing much would happen except the Intermediate Window would become visible. This is because Add-Ins created with the Add-In Template are compiled to DLLs (Dynamic Link Libraries). If you were to compile this project at this point, you would have an Add-In added to the VB-IDE called "MyAddIn". Whenever "MyAddin" is started from the Add-Ins Tab of the Main Menu Bar a Message Box would be displayed stating "AddIn operation on". This is a good start, but message boxes are not a great help for converting numbers.

In the Project Properties Window, accessible on the project menu, change the Project's name to ConverterAddIn. Once you have done this, click OK, and set the Form's name to frmConvert. Next, Save the Project to the "ConverterAddIn" Sub Folder that we created in Step 1. Use "Save Project As" from the File Menu and save the Project as "ConverterAddIn".





Page 2 of 5



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Sitemap | Contact Us

Thanks for your registration, follow us on our social networks to keep up-to-date
Rocket Fuel