Add a function to ADXModule class

Add-in Express™ Support Service
That's what is more important than anything else

Add a function to ADXModule class
 
Pierre-D. Savard




Posts: 41
Joined: 2007-03-23
Hi, I try to add a function in the ADXModule1 class to be able to pass in reference a pointer to a global variable present in the ThisAddIN class.

I create My function public in the ADXModule1.vb file. How I can access to it from the ThisAddin.vb file?
I think i got the define a new ADXModule1 but I don't know hoe to link the existing one with my new declaration:


Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup
        'Initialisation

        'Add-in Express .NET for VSTO generated code
        ADXModule1.Initialize(Me, System.Type.GetType("CRMFuzion.ADXModule1"))

        Dim MyModule As ADXModule1
        MyModule =  ??????
        MyModule.SetEntryIDRef()


Thanks Again
Posted 18 Apr, 2007 13:43:25 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Pierre.

You can use the 'ADXModule1.CurrentInstance' global variable to access an instance of the ADXModule1 class from the ThisAddin class.


P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 19 Apr, 2007 09:08:34 Top