C# Tutorial - Create a License Key/Activation Key C#.Net #2 | FoxLearn
Vložit
- čas přidán 13. 06. 2016
- Create License key, Activation Key, Serial Key Maker, Generate Product Key, Validate a software License Key in C#.NET. The C# Basics beginner course is a free C# Tutorial Series that helps beginning programmers learn the basics of the C# Programming Language.
FoxLearn.License.dll : ouo.press/Hg7OmX
Website: foxlearn.com
@foxlearn can i i ask? After updated a windows 10 is it possible - hwnd key of computer is changed? When i use your foxlearnlicense.dll ?
Good job. thanks for this tutorial, it help my work. but I have found a problem. why generated product key from my PC can also work in another PC with different product ID? Is this problem occur from code?
thank you.
I have already implemented your program it is very simple and systematic but I came across two problems where I cannot kill the license after the time period has passed. Can you be specific how to include the time limitation that once the date expires, if the About button is clicked it will show invalid product Key and also if we change the date back then also the license is not available.
Amazing , thanks fox learning :)
There is no use of ProductCode while registering the key.
This means anyone can generate and register the key who knows how to fetch computer id with the dll.
Using productcode while registering will give security.
Can anyone please tell how to use productcode while registering ?
Hallo,
question - can i use this in our projects ? Is your dll opensource ? Thanks for info.
How to disable some function when the product key expired?
Example: On MainForm (Setting, CreateUser, EditUser,....)
I have a problem, How can I generate the product key for another computer since it using my computerid to generate the product key?
I have a question Can't i create the serial key in a project and use it in another ?
i dont understand, i types it all correct but when i load the generator nothing happens and no product key comes up, do i need to buy one or something?
Choose respective load event from properties section of your respective forms. It does work
Thank you for your videos..
However I have made a setup.msi of this license form. But installed file does not create Key.lic and if I copy paste the file from release folder about page does not recognise it.
Hi. Could you help me. I can no get this line correct:
string.Format("{0} days", (kv.Expiration =DateTime.Now.Date).Days); Because I have only after Now.Date).Day. Not see the Days or TotalDays option in autocomplete.
Thanks in advance
kv.Expiration -DateTime.Now.Date) NOT =
the part of generating a Full license type key do nothing for me :\ what shall i review.
What kind of license had you selected for the DLL file?
Could you please make an example to take the key that was generated and put in the program and show the status as enabled or not activated?
FoxLearn, thanks for the wonderful info. However, I have 1 issue. After activation, I'm able to check if "Key.lic" is in right place but how do I check/read the Product Key inside it to be sure it's valid before allowing the application to run? Thank you, again.
OK. Thank you for your suggestion. I'll upload soon !
@@foxlearn Still waiting for the video. I thank you in advance for your help.
Please Help me! I have create software to add license key....#Ask to license key again and again...in C#
Sorry for asking about the dll file, I was directed to a page that asked for a credit card details but then recognized it was an ad page. i did download it. thanks a lot.. and keep the great work ;)
Thank you :)
i need some help. in my Testproject return km.Validkey(ref productkey) always -1, but with your code in video works. Any Idea ? i compile my Testproject against .NET framework 4.6 .
Hi, You can try .dll goo.gl/qfKcaX .Thank you
My application open and any time aksed to product key ? plz help this !
Good job , i have tried this but after entering the product key and the app is activated once i try to open it again it ask for the key again and i am using the .exe file not in debug mode , could help me to know what is the problem ?
How can we add experience days for FULL license type?
Not working when i genrate code any computer ID then the genrated product key use with also with other computer that have different computer ID
Wow..its really help me a lot thank you for your all tutorials..
Thank you so much
hey, i want to get computer id using diskid. how can i do that using this dll file.
The tutorial has been of great help, thank you. the generator software will generate a product key based on the machine ID, though when using this method how can we remotely fetch this customer's ID so that we can send them the product key after software purchase e.g purchase made through a website.
Gracias!!, Lo implemente en mi proyecto y me ayudo de mucho :)
You're welcome. Thank you so much !
Hi what is the use of const int ProductCode? because I try to generate a key with a const int ProductCode = 1 then a change it to Const int ProductCode = 2 then run the program then I paste the first generated license key to the program with const int ProductCode = 2 then it was successfull.. I want to ask if that's right or it shouldn't success?
arechlim@gmail.com please send the source code thanks :)
Sent. ProductCode is number of your product (Software 1, 2, 3, 4...n). Thank you
Metoo
hi CZcamsr, i try run another computer, I edit ProductID but any productKey application is run, how errors.
What if there is more than 1 application used by the user ? so there is only one Computer ID and many application that should be activated. SO whith your library, one serial could activate as many software that comes from me. any idea how to add the name of the application to the registration process ?
thank you
SALAM DO YOU THE ANSWER
and this is works for online websites like can i make it for online store,
if some one buy a copy, Auto make a License Key and send it to user and the License Key vaild for one time use!?
Yes, I think you can use web service or web api to create a license key
can you help me do this?
I think quantum-key.net does what you need
hey can i get this code with the dll for my learning purpose
You are really Amazing!!!
Thank you :)
Hello. It is possible to have the source of license.dll ?
I love your programming style, great video as usual.
100% dose the dll is safe to use it?
Thank you :)
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll
Additional information: Could not load file or assembly 'FoxLearn.License, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Facing this error need help :(
Hi, Which .net framework version are you using? You can select .Net 4.0, thanks
It is showing error on fm.showdialouge();
Hello, can I ask you, what can I activate with this License key program?
You can integrate into your application. Thank you !
terima kasih ayas pembelajarannya
Many thanks!
Thank you !
Nice TUT! Could you pls make another video on how to start the secured software after its been activated with the license code
Hello, I tried this instruction :
ComputerInfo.GetComputerId();
then I get this exeption "NotImplementedException: The requested feature is not implemented.",
how to resolve it please ?
OK. Let me check again. thank you !
Use... Namespace
Using foxlern. Licence ;
@@dinkarchougale4449 I am getting Object reference not set to an instance of an object. on ComputerInfo.GetComputerId(); any suggestion?
hello Fox Learn; please I am not able to get your bellow this video; can you assist me .???
im worry if someone decompiles the .dll or .lic file?
Not able to get the .dll
Hi, You can use .NET Obfuscator to anti decompile .dll. thanks
hi,after i install my app to test i activate and its successful but when i try checking status,it loads as if not registered my about form has product id only,license details not available,can you kindly suggest what might have been missing,in the project all is fine.
Hi, Please check your license key in debug folder. Each time you rebuild your project, all data in debug folder will be deleted. Thank
kindly send me the source code, email.petermbugua54@hotmail.com
thanks for the tutorial
I made key generation application followin this. But how can i use it in my own application?
AWESOME, thanks..
i have an error please help me ..this line ( km.SaveSuretyFile(string.Format(@"{0}\key.lic",Application.StartupPath), lic);)is error in wpf what i have to do ? ....pease answer
Hi, Have you added reference to license library? thanks
yes i do evry thing like what you did
Hey Great Work But there is problem With this if End User Change the Date then it will going to essay to use after the Date change. I have tested it its not work for if System date change is there any way to check the date change also ??
That's right, you should store current day, then you can check if your client back the day you can clock
@@foxlearn But How To calculate The days if My Expire Day is 17 and Entry Day 10
if client change the System Date then Its not Work i use my logic to solve this but i cant do the validation for it can you please make any video for that
how to store generated key in our database/file in system?
Hi,
How can i get this libray?? FoxLearn.License
Hi, Itry but that not work for windows 8 operating system
Please help
Vb Not Work
if the user changes the date and time on pc then we can bypass or not?
You should save datetime register in license file, then check current time. lock license if your user change datetime
tem como fazer isso no visual basic 6.0
Hi, Thanks for this tutorial very useful .dll
How can I overcome this problem if the user change date in the pc/station that software is installed?
If you want to change the date of the windows in the system, how could this be solved?
Hi, You can save current date in license key, then you can compare if you change your computer date. thanks
can i add secure key , any one have this app can't activate my application
works like charm,but the question is how to integrate with software?
could i use this code in vb.net if so how to use it?
i have already develop a code mentioned in video and all code are successfully worked, but how to implement in my software application and how to manage in future when i dealing with client. i'm windows application developer.
Hi Harsh
Did you get an answer regarding this?
Francisco Abrao no
Hi,
are you brazilian ??? whether yes, can you help me about get this libray FoxLearn.License?
Could you please send me source code to hhamdy@live.com
Nice tutorial. Could you send me source code to oddiri2013@gmail.com
How i develop licence based activation on c# application , like antivirus key activation.
OK. Thank you for your suggestion.
thanks - haw to delete or logout product key
Nice library I am using it with online authentication database
but it would be great if you make the dll open source and document it
question how do you make online authentication database if you can provide me with open source i will be grateful
Windows activate key the ?
Office Activate key the ?
awesome tutorial Thanks alot, i can get the source code :)
Hi. What's your email ? thanks
The trial for me does not work ....
Please check your code again. i think you miss something. thank you !
What is the license of the Fox Learn.License library?
Hi, FoxLearn.License.dll is a library
This library is free?
Is there a way to make it so that they have to pay for the key?
I think you should create the license service allows your client registration via internet, you can send the license key to your client
Registration with hardisk serial number?
is this workable with C# ASP.NET web application?
Yes
Hi, what can I do with this generator?
You can integrate into your application. Thank you !
awesome tutorial Thanks alot, i can get the source code
hello thank you for your tutorial. May I have your code for learning purpose? Thank you very much!!!
is this free to use?
dll link not working access denied message
i have 10 computer with same computer name then i need only one .lic file please update this generate keys and validay not depend on computer name
Each computer has a id, you can't copy the same key for all computer
How can check if the trail days is end
and if its end must prevent start the program
Hi, You can check the license is trial day or full, if trial day you need to check (Expiration - Current day = 0), you can show popup register form, thanks
Can sent the code
Thanks
can sent the code with check (Expiration - Current day = 0) and exit program if it's no more days
adnan.turkey88@gmail.com
Sent. thank you !
thank you.......
when I change the "const int ProductCode = 1" in frmRegistration and frmGenerate
it registered
Is there a way to deactivate the generated keys?
Can you describe more details? thank you !
if computer name same then single .lic will activate all ones please update this
Machine ID created by hardware such as mainboard, cpu...ect
Fox Learn how to add data or variable to a license ?
hi, You can add to licenseinfo. Thanks
cboLicense are not comes in liberary please help
please check your code again. i think you miss something
i really want to make a generator that manipulate key by the username or email address or both of them.
ok. Thank you for your suggestion. i'll update :)
can you send me the code to this email weebaymodz@gmail.com
Can you give me your sourcode for this video? Thanks in advance
file link is dead
How to use in project 1 year activation tell me???
Set trial 365 days
Please i need the source code can you send it to me
HOW I IMPLEMENT IT IN MY APPLICATION
OK. Thank you for your suggestion.
Please continue the video by how do we know when the key has expired?
OK. Thank you for your suggestion
@@foxlearn Did you?
can u help me
Pls create the same tutorial in VB.Net. If you have a time....
FoxLearn how to make used keys?
Hi, You can add check license key in your startup program, thanks
How to add a check?
Rec pls turorial ;3
hi, your codes are really useful. I have implemented into my project and it works perfectly. However, I would like to generate more than 1 product keys and make it such that the product keys aren't repetitive. I am able to generate the number of license keys based on the number the user input, but the license keys generated are duplicated. Is there a way on how I can modify the codes such that I can generate different product keys each time?
eg. of how the code works:
no. of license keys to generate: 2 (user input)
license keys generated:
12345-ABCDE-QWERT-56987
12345-ABCDE-QWERT-56987
What i would like my output to be:
no. of license keys to generate: 2 (user input)
license keys generated:
12345-ABCDE-QWERT-56987
GJKHD-14569-KEOSJ-74112
Product Key is a ID of your product, it has created by machine id and product id. so you can generate more licenses key.
For example:
Sofware 1 has product id 1->generate product key (product id + machine id)
Sofware 2 ....product id 2-> etc
@@foxlearn so if i want to generate more license i have to input a different product id each time? my codes is such that there is a numeric up down for user to choose how many license they want to be generated at one go
eg. software 1 has product id 1 > able to generate >1 product key for one software, is it possible?
i am trying but properties not accessing
What error are you getting? Thanks
A good tutorial just how to make that after 1 day gave a message?
OK. Thank you for your suggestion !
@@foxlearn You do that? Just very much needed!
Hi, thanks for your great works!!!!...can you pls send me the code
Hi, What's your email? thanks
rafionline84@gmail.com
did u sent?
Sent. Please check your email. thanks
NO MATTER WHAT PRODUCT ID IS PRODUCT KEY ALWAYS VALID, 1 KEY CAN WORK ALL COMPUTER.
Yes, But you need to set the same product ID for all computer
sir Can You send me the source code of FoxLearn.License.Dll its important
Hi, You can download FoxLearn.License below this video. Thanks
Could you please send me source code to hhamdy@live.com
Hi FoxLearn
Thanks, can you please send me the source code. Please?
Hi, What's your email? thanks
this not work at .net from wark 3.5
OK. Let's me check .net version again
i love you ,thank you