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.


namespace LicenseShieldDemo
    public partial class MainForm : Form
        public MainForm()

        private void btExit_Click(object sender, EventArgs e)

        private void MainForm_Load(object sender, EventArgs e)
            // Replace with your purchased License Key once you get one

            // 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.",

            // Set TrialMode of Applicaton
            LicenseShieldSDK.SetAppTrialMode(1, 10);

            // Pop-up Register Window, Should be last line of your protection code

« Back to FAQ

See Also: