This is covered very well in the Shareware Starter Kit. It has code for limited trials, secure activation, registration and Paypal integration. Highly recommended, you don’t want to invent that wheel.
The link I gave you is not a great one, you have to click through the license to get to the download. I can’t find a link anymore that describes the C# specific version of that kit.
Related Contents:
- How do I remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?
- What are the correct version numbers for C#?
- Display lines number in Stack Trace for .NET assembly in Release mode
- Make an Installation program for C# applications and include .NET Framework installer into the setup
- What is the purpose of the “Prefer 32-bit” setting in Visual Studio and how does it actually work?
- Can’t view designer when coding a form in C#
- Does C# 8 support the .NET Framework?
- Type or namespace name does not exist [closed]
- Detect target framework version at compile time
- What is the difference between Debug and Release in Visual Studio?
- The name ‘ConfigurationManager’ does not exist in the current context
- Parsing Visual Studio Solution files
- How is performance affected by an unused using directive?
- Why does ReSharper want to use ‘var’ for everything? [duplicate]
- Combining multiple Attributes to a single Attribute – Merge Attributes
- How can we change the background color of all other forms from one form?
- Visual Studio build fails: unable to copy exe-file from obj\debug to bin\debug
- How can I embed an application manifest into an application using VS2008?
- How to set conditional breakpoints in Visual Studio?
- Determine assembly version during a post-build event
- Request.UrlReferrer null?
- What is the best practice for “Copy Local” and with project references?
- Visual Studio – Resx File default ‘internal’ to ‘public’
- Can the C# interactive window interact with my code?
- How to download a Nuget package without nuget.exe or Visual Studio extension?
- Passing command line parameters with Visual Studio C#
- Can I set LARGEADDRESSAWARE from within Visual Studio?
- Show controls added programmatically in WinForms app in Design view?
- Visual Studio 2013 doesn’t discover unit tests
- Create web service proxy in Visual Studio from a WSDL file
- Enable SSL in Visual Studio
- No Source available
- System.BadImageFormatException: Reference assemblies should not be loaded for execution [duplicate]
- Visual Studio – project shows up as “Miscellaneous Files”
- Program and debugger quit without indication of problem
- Shared AssemblyInfo for uniform versioning across the solution
- .NET Core include folder in publish
- Is there a string math evaluator in .NET?
- Restarting (Recycling) an Application Pool
- Reducing memory usage of .NET applications?
- How can I test for the presence of an Action Filter with constructor arguments?
- How do I pronounce “=>” as used in lambda expressions in .Net [closed]
- How to mix colors “naturally” with C#?
- Deserialize json object with dynamic items in C#
- Random slot algorithm
- Does “foreach” cause repeated Linq execution?
- Where is HttpContent.ReadAsAsync?
- Is there a way to force a C# class to implement certain static functions?
- What options are available for Shell32.Folder.GetDetailsOf(..,..)?
- Why Create Custom Exceptions? [closed]