FAQ: How to protect your C# program with License Shield SDK?
If you are an C# Developer and looking for a solution to protect your C# applicaton, you can try our License Shield SDK. With a few function call in C#, it helps you "add trial features" in your C# projects easily and quickly.
C#
namespace LicenseShieldDemo { public partial class MainForm : Form { public MainForm() { InitializeComponent(); } private void btExit_Click(object sender, EventArgs e) { Close(); } private void MainForm_Load(object sender, EventArgs e) { // Replace with your purchased License Key once you get one LicenseShieldSDK.SetLicenseKey("Your-License-Key"); // Set the parameters of the algorithm. NOTE: KeyBuilder should also use this parameter. LicenseShieldSDK.SetAppKeys("My First Program", 34, 35, 1000); // Set the Pop-up Window (Register Window) displays information. LicenseShieldSDK.SetAppRegWin("My First Program v1.00", "Copyright (C) 2012, Your Company. All rights reserved.", "You are using a unregistered version of My First Program. \r\n" + "If you want to using full functions, you must purchase a license.", "http://www.adeptshare.com/purchase.html"); // Set TrialMode of Applicaton LicenseShieldSDK.SetAppTrialMode(1, 10); // Pop-up Register Window, Should be last line of your protection code LicenseShieldSDK.ShowAppRegWin(); } } }
See Also:
- How to make a 14 day Trial limit in my VB application?
- How to use License Shield SDK to add trial features in Delphi project?
- How to make a 14-day Trial limit in my Delphi Programs?
- How to protect your VB program via License Shield SDK?
- How to use License Shield SDK to add trial features in C++ Builder project?