How to license your control - C#.NET

Explain how to license your control in C#.NET

Create Activex Control that needs license at runtime: Assume control is MyActivex.LicensedControl and license key for the control is eieirureiureue32823njndjfdnkjdfn.

1. find code that creates this control.

2. Add following code
MyActivex.LicensedControl
myControl = new MyActivex.LicensedControl();"
System.Reflection.FieldInfo f = typeof(AxHost).GetField("licenseKey",
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
f.SetValue(myControl, "eieirureiureue32823njndjfdnkjdfn");

3. Build the application and run it.
What are Strong Named Assemblies? Explain steps to create them - C#.NET
What are Strong Named Assemblies? - They are the assemblies which can be uniquely identified by attaching the strong name to the dll name...
Ways to deploy your windows application - C#.NET
Explain the ways to deploy your windows application - Merge Module Project: Allows the package of the components to be shared between multiple applications...
Explain 3 types of configuration files in windows application in .NET
Explain 3 types of configuration files in windows application in .NET - Application Coniguration:They contain configuration settings specific to applications...
Post your comment