.Net Developer Instructions
There are a couple of instructions worth noting to aid in the development and deployment of a .Net application which differ slightly from the development and deployment of a VBA based application. They are as follows:
- The best way of intergrating the control into your .Net application is to drop it on the startup form. This allows Visual Studio to correctly integrate the control into your code base as well as creating the files needed for deployment of the control.
- After dropping the control onto your form you should notice that two files are created in your References - ApplicLib and AxApplicLib. These two files should also be included in your distribution (along with the ApplicxXX.ocx file as outlined in another help topic) and should be deployed to the same directory as your built executable.
Add the line:
using AppLicLibrary;
to the top of your startup form's code. Now you can define and instantiate the object, for example:
Define the object:
private CAppLicControl m_AppLic;
. . .
Instantiate the object within the home form's constructor:
m_AppLic = new CAppLicControl();
You can then proceed as described elsewhere with development of the licensing of your application:
m_AppLic.ApplicationCode = "<my_random_code>"
int iReturn = m_AppLic.ActivateSecurity();
Don't forget, as always, to save any confusion,
contact us to ask any questions about development or deployment.