How do i use serial key for my application
I need to make a serial key software for my application. How do i do that?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 19, 2009, 7:04 PM EDT
Give You Simple Idea Create registry Key When you Install Software write Serial In Registry
and Compare it Every time when Software is Loaded if its True Software Will run else
Will ask you For Serial ..
First of All make your Setup Project Capable to Create Entry in HKEY_CURRENTUSER like Below
Its not Complete Code But Just Code that i have Writen to Show you Example How to Code for Registry
using Microsoft.Win32; private void Form1_Load(object sender, EventArgs e) { RegistryKey regkey = Registry.CurrentUser.OpenSubKey(@"Softwares\CompanyName\", true); string Serial = regkey.GetValue("AppSerial","").ToString(); regkey.Close(); if (Serial != "YourCustome generated Serial") { // Show Serial Validation Dialog SerialDialog sd = new SerialDialog(); SerialDialog.ShowDialog(); //Now Write Code For Form Closing if User Gives Wrong Serial number !! } }Manjiri Shevde25 reputationPosted Oct 25, 2010, 2:50 AM EDT