By writing Add-ins to LIME Pro you can add functionality that looks exactly like Limes built in functions. You can add a Command button that invokes a dialog for checking duplicates in the database or adding a command to a menu for importing prospects from a file.
The Add-In can be written in any language, but the sample below is based on Visual Basic.
Create an ActiveX DLL
Start Visual Basic and chose to make a new ActiveX DLL.

In Project>References check Lundalogik LIME Pro Application and Microsoft Add-In Designer.

Create a new Form and add a label with a text of your choice.

Implement IDTExtensibility2
Now we have to implement the interface IDTExtensibility2. This is done by writing Implements IDTExtensibility2 at the top in class module Class1.

After that you implement all the methods in IDTExtensibility2. Remember that all methods starting with IDTExtensibility2_ must exist in the file, even if they are empty.
Now save, compile and close the project.
Add the Add-In to the Registry
To allow LIME Pro to find your Add-In you have to add a key to the Registry. You add a key to:
HKEY_LOCAL_MACHINE\SOFTWARE\Lundalogik\Lime\InstalledAddIns
with the name of the Add-In. Under this key you add two keys. The key DefaultLocale sets the default language and LoadBehavior can have a combination of the following values:
0 Disconnected
1 Connected
2 BootLoad
8 DemandLoad
16 ConnectFirstTime

Under this key you add keys for every language you want the Add-In to support. In the case below English and Swedish.
In the language key you add a Description and a FriendlyName. Description is the description seen in the Add-Ins dialog in Lime™ and FriendlyName is the ”human readable” name of the Add-In (or else the name would be Project1.Class1).
The Resulting Command Button
After loading the Add-In (Tools>Add-Ins) a new Command button is added below the other buttons in the Command Bar.
![]()
By clicking the button the form is displayed.



