Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Tuned Listener
Posts: 67
Registered: ‎11-29-2011

Using .Net UserControl in SalesLogix Form



Can anyone give me any example of how to use .Net UserControl in SalesLogix Form? I know something about .Net extension manager. But I could I load .Net UserControl to the Form in Architect?


Thanks a lot!

Nickel Elite Contributor
Posts: 107
Registered: ‎03-09-2011

Re: Using .Net UserControl in SalesLogix Form

I started my .net extension traiing here


Make sure that .net assemblies are Com Visible and your starting point that gets called by the Lan Client inherits from System.MarshalByRefObject and  Sage.SalesLogix.NetExtensions.IRunnable. You must implement the Initialize and Run methods.


Keep in mind that the .net extension framework has been updated. 


Here is a code snippet

using Sage.SalesLogix.NetExtensions;
using Sage.SalesLogix.NetExtensions.Licensing;
using Sage.SalesLogix.NetExtensions.SalesLogix;

public class SlxWrapper : MarshalByRefObject, IRunnable
    private ISlxApplication _slx;

    public void Initialize (ISlxApplication slxApplication, ILicenseKeyManager licenseKeyManager)
	_slx = slxApplication;

    public object Run (object[] args)
        //process your arguments and fire of any other things you want to happen directly from slx lan client
//here is amethod stub. This can be accessed from the returned object in your calling vb script
    public void SomeMetod()
         //display a messgae box or somethig here
//This will return a string from the .net extension to your calling code
    public string returnStringMetod()
        return "some string value";