C# Tutorial - Create a License Key/Activation Key C#.Net #2 | FoxLearn

Sdílet
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

Komentáře • 752

  • @Adamszsz
    @Adamszsz Před 5 lety +1

    @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 ?

  • @AbdurRouf-zi1kq
    @AbdurRouf-zi1kq Před 7 lety +4

    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.

  • @jajpuritube
    @jajpuritube Před 7 lety

    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.

  • @GamePixelVR
    @GamePixelVR Před 6 lety

    Amazing , thanks fox learning :)

  • @AlokKumar-dl9yf
    @AlokKumar-dl9yf Před 6 lety +3

    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 ?

  • @torchok19081986
    @torchok19081986 Před 7 lety

    Hallo,
    question - can i use this in our projects ? Is your dll opensource ? Thanks for info.

  • @sadenlav
    @sadenlav Před 4 lety

    How to disable some function when the product key expired?
    Example: On MainForm (Setting, CreateUser, EditUser,....)

  • @christopherguntang7816
    @christopherguntang7816 Před 2 lety +1

    I have a problem, How can I generate the product key for another computer since it using my computerid to generate the product key?

  • @karlmounguengui4652
    @karlmounguengui4652 Před 5 lety

    I have a question Can't i create the serial key in a project and use it in another ?

  • @JackVXR
    @JackVXR Před 7 lety

    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?

    • @prakashmilestone
      @prakashmilestone Před 5 lety

      Choose respective load event from properties section of your respective forms. It does work

  • @eliezerdara6387
    @eliezerdara6387 Před 2 lety

    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.

  • @DatafoxSoftware
    @DatafoxSoftware Před 5 lety

    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

    • @aissa761
      @aissa761 Před 5 lety

      kv.Expiration -DateTime.Now.Date) NOT =

  • @WenzoTheDrummer
    @WenzoTheDrummer Před 7 lety

    the part of generating a Full license type key do nothing for me :\ what shall i review.

  • @jose-sebastian-garcia
    @jose-sebastian-garcia Před 2 lety

    What kind of license had you selected for the DLL file?

  • @Pio2K_TH
    @Pio2K_TH Před 3 lety

    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?

  • @orpee4486
    @orpee4486 Před 4 lety +1

    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.

    • @foxlearn
      @foxlearn  Před 4 lety +2

      OK. Thank you for your suggestion. I'll upload soon !

    • @orpee4486
      @orpee4486 Před 4 lety

      @@foxlearn Still waiting for the video. I thank you in advance for your help.

  • @MMVideoKailash
    @MMVideoKailash Před 5 lety

    Please Help me! I have create software to add license key....#Ask to license key again and again...in C#

  • @alial-shammari8370
    @alial-shammari8370 Před 7 lety

    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 ;)

  • @torchok19081986
    @torchok19081986 Před 7 lety

    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 .

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, You can try .dll goo.gl/qfKcaX .Thank you

  • @MMVideoKailash
    @MMVideoKailash Před 5 lety

    My application open and any time aksed to product key ? plz help this !

  • @ews2010
    @ews2010 Před 7 lety

    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 ?

  • @burakersever7699
    @burakersever7699 Před 6 lety +1

    How can we add experience days for FULL license type?

  • @pixemsoft1
    @pixemsoft1 Před 5 lety

    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

  • @piatozm9866
    @piatozm9866 Před 7 lety

    Wow..its really help me a lot thank you for your all tutorials..

  • @tharindudilshan8041
    @tharindudilshan8041 Před 6 lety

    hey, i want to get computer id using diskid. how can i do that using this dll file.

  • @gabrielkasonde367
    @gabrielkasonde367 Před rokem

    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.

  • @crizc1477
    @crizc1477 Před 5 lety +1

    Gracias!!, Lo implemente en mi proyecto y me ayudo de mucho :)

  • @arechlim759
    @arechlim759 Před 7 lety +1

    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?

    • @arechlim759
      @arechlim759 Před 7 lety

      arechlim@gmail.com please send the source code thanks :)

    • @foxlearn
      @foxlearn  Před 7 lety

      Sent. ProductCode is number of your product (Software 1, 2, 3, 4...n). Thank you

    • @AungKo1
      @AungKo1 Před 4 lety

      Metoo

  • @Prolap115Computer
    @Prolap115Computer Před 4 lety

    hi CZcamsr, i try run another computer, I edit ProductID but any productKey application is run, how errors.

  • @mounirammi
    @mounirammi Před 6 lety

    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

  • @JamalAbo
    @JamalAbo Před 7 lety +1

    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!?

    • @foxlearn
      @foxlearn  Před 7 lety +1

      Yes, I think you can use web service or web api to create a license key

    • @JamalAbo
      @JamalAbo Před 7 lety +1

      can you help me do this?

    • @ZazMedia
      @ZazMedia Před 6 lety

      I think quantum-key.net does what you need

  • @gowthamv462
    @gowthamv462 Před rokem

    hey can i get this code with the dll for my learning purpose

  • @yahyahoush313
    @yahyahoush313 Před 7 lety

    You are really Amazing!!!

  • @F00GY
    @F00GY Před 2 lety

    Hello. It is possible to have the source of license.dll ?

  • @learninsimpleway
    @learninsimpleway Před 8 lety +1

    I love your programming style, great video as usual.
    100% dose the dll is safe to use it?

  • @softsolution5629
    @softsolution5629 Před 7 lety

    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 :(

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, Which .net framework version are you using? You can select .Net 4.0, thanks

    • @softsolution5629
      @softsolution5629 Před 7 lety

      It is showing error on fm.showdialouge();

  • @RogueLeader
    @RogueLeader Před 5 lety

    Hello, can I ask you, what can I activate with this License key program?

    • @foxlearn
      @foxlearn  Před 5 lety

      You can integrate into your application. Thank you !

  • @dpcpkbtrenggalek7099
    @dpcpkbtrenggalek7099 Před 3 lety

    terima kasih ayas pembelajarannya

  • @manjeetnandal1
    @manjeetnandal1 Před 4 lety +1

    Many thanks!

  • @kingsleyufot797
    @kingsleyufot797 Před 6 lety

    Nice TUT! Could you pls make another video on how to start the secured software after its been activated with the license code

  • @Nekon0Kokoro
    @Nekon0Kokoro Před 5 lety

    Hello, I tried this instruction :
    ComputerInfo.GetComputerId();
    then I get this exeption "NotImplementedException: The requested feature is not implemented.",
    how to resolve it please ?

    • @foxlearn
      @foxlearn  Před 5 lety

      OK. Let me check again. thank you !

    • @dinkarchougale4449
      @dinkarchougale4449 Před 3 lety

      Use... Namespace
      Using foxlern. Licence ;

    • @abargamgm906
      @abargamgm906 Před 2 lety

      ​@@dinkarchougale4449 I am getting Object reference not set to an instance of an object. on ComputerInfo.GetComputerId(); any suggestion?

  • @MsMbonga
    @MsMbonga Před 10 měsíci

    hello Fox Learn; please I am not able to get your bellow this video; can you assist me .???

  • @CoderRiderMofi
    @CoderRiderMofi Před 7 lety

    im worry if someone decompiles the .dll or .lic file?
    Not able to get the .dll

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, You can use .NET Obfuscator to anti decompile .dll. thanks

  • @petermbugua54
    @petermbugua54 Před 7 lety

    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.

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, Please check your license key in debug folder. Each time you rebuild your project, all data in debug folder will be deleted. Thank

    • @petermbugua54
      @petermbugua54 Před 7 lety

      kindly send me the source code, email.petermbugua54@hotmail.com

  • @tonyo.2732
    @tonyo.2732 Před 7 lety

    thanks for the tutorial

  • @prakashmilestone
    @prakashmilestone Před 5 lety

    I made key generation application followin this. But how can i use it in my own application?

  • @CarlosEspinoza8219
    @CarlosEspinoza8219 Před 2 lety

    AWESOME, thanks..

  • @khaledzaid6747
    @khaledzaid6747 Před 7 lety

    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

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, Have you added reference to license library? thanks

    • @khaledzaid6747
      @khaledzaid6747 Před 7 lety

      yes i do evry thing like what you did

  • @milinddabhade5280
    @milinddabhade5280 Před 5 lety

    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 ??

    • @foxlearn
      @foxlearn  Před 5 lety

      That's right, you should store current day, then you can check if your client back the day you can clock

    • @milinddabhade5280
      @milinddabhade5280 Před 5 lety

      ​@@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

  • @shubhamkhandagale1366
    @shubhamkhandagale1366 Před 2 lety

    how to store generated key in our database/file in system?

  • @vmarinpietri
    @vmarinpietri Před 6 lety

    Hi,
    How can i get this libray?? FoxLearn.License

  • @messantekpor6917
    @messantekpor6917 Před 2 lety

    Hi, Itry but that not work for windows 8 operating system
    Please help

  • @sumet
    @sumet Před 2 lety

    Vb Not Work

  • @fademaydarkness1017
    @fademaydarkness1017 Před 5 lety

    if the user changes the date and time on pc then we can bypass or not?

    • @foxlearn
      @foxlearn  Před 5 lety

      You should save datetime register in license file, then check current time. lock license if your user change datetime

  • @speakermethos
    @speakermethos Před rokem

    tem como fazer isso no visual basic 6.0

  • @Igal895
    @Igal895 Před 3 lety

    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?

  • @smeruane
    @smeruane Před 7 lety

    If you want to change the date of the windows in the system, how could this be solved?

    • @foxlearn
      @foxlearn  Před 7 lety +1

      Hi, You can save current date in license key, then you can compare if you change your computer date. thanks

  • @Stop001-yf5np
    @Stop001-yf5np Před měsícem

    can i add secure key , any one have this app can't activate my application

  • @gomeztorricellygomez7808
    @gomeztorricellygomez7808 Před 3 lety +1

    works like charm,but the question is how to integrate with software?

  • @mmlazreg4541
    @mmlazreg4541 Před 7 lety

    could i use this code in vb.net if so how to use it?

  • @hntrivedi1991
    @hntrivedi1991 Před 7 lety +1

    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.

    • @abraofrancisco7198
      @abraofrancisco7198 Před 6 lety

      Hi Harsh
      Did you get an answer regarding this?

    • @hntrivedi1991
      @hntrivedi1991 Před 6 lety

      Francisco Abrao no

    • @vmarinpietri
      @vmarinpietri Před 6 lety

      Hi,
      are you brazilian ??? whether yes, can you help me about get this libray FoxLearn.License?

    • @hossamhamdy9957
      @hossamhamdy9957 Před 6 lety

      Could you please send me source code to hhamdy@live.com

    • @chukky3652
      @chukky3652 Před 5 lety

      Nice tutorial. Could you send me source code to oddiri2013@gmail.com

  • @indresh_malviya
    @indresh_malviya Před 4 lety

    How i develop licence based activation on c# application , like antivirus key activation.

    • @foxlearn
      @foxlearn  Před 4 lety

      OK. Thank you for your suggestion.

  • @bybyxdkurd2765
    @bybyxdkurd2765 Před 3 lety

    thanks - haw to delete or logout product key

  • @alisaeidalsheikh6451
    @alisaeidalsheikh6451 Před 2 lety +1

    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

    • @Amro-Omran
      @Amro-Omran Před rokem

      question how do you make online authentication database if you can provide me with open source i will be grateful

  • @aliexpressbusinessmanageme8562

    Windows activate key the ?
    Office Activate key the ?

  • @smartiptv182
    @smartiptv182 Před 8 lety

    awesome tutorial Thanks alot, i can get the source code :)

    • @foxlearn
      @foxlearn  Před 8 lety

      Hi. What's your email ? thanks

  • @Eds456
    @Eds456 Před 4 lety

    The trial for me does not work ....

    • @foxlearn
      @foxlearn  Před 4 lety

      Please check your code again. i think you miss something. thank you !

  • @AindaNaoSouIA
    @AindaNaoSouIA Před 7 lety

    What is the license of the Fox Learn.License library?

  • @TheTrollersUS
    @TheTrollersUS Před 5 lety

    Is there a way to make it so that they have to pay for the key?

    • @foxlearn
      @foxlearn  Před 5 lety

      I think you should create the license service allows your client registration via internet, you can send the license key to your client

  • @brisksofti.tsolutions7152

    Registration with hardisk serial number?

  • @jxyeoh7146
    @jxyeoh7146 Před 5 lety

    is this workable with C# ASP.NET web application?

  • @RogueLeader
    @RogueLeader Před 5 lety

    Hi, what can I do with this generator?

    • @foxlearn
      @foxlearn  Před 5 lety

      You can integrate into your application. Thank you !

  • @omidahraar1868
    @omidahraar1868 Před 3 lety

    awesome tutorial Thanks alot, i can get the source code

  • @user-nz1uq5ps8q
    @user-nz1uq5ps8q Před 6 měsíci

    hello thank you for your tutorial. May I have your code for learning purpose? Thank you very much!!!

  • @martijn8530
    @martijn8530 Před 7 lety

    is this free to use?

  • @nileshjadhav1602
    @nileshjadhav1602 Před rokem

    dll link not working access denied message

  • @clidton
    @clidton Před 5 lety

    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

    • @foxlearn
      @foxlearn  Před 5 lety

      Each computer has a id, you can't copy the same key for all computer

  • @engadnanturki9345
    @engadnanturki9345 Před 7 lety

    How can check if the trail days is end
    and if its end must prevent start the program

    • @foxlearn
      @foxlearn  Před 7 lety

      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

    • @engadnanturki9345
      @engadnanturki9345 Před 7 lety

      Can sent the code
      Thanks

    • @engadnanturki9345
      @engadnanturki9345 Před 7 lety

      can sent the code with check (Expiration - Current day = 0) and exit program if it's no more days
      adnan.turkey88@gmail.com

    • @foxlearn
      @foxlearn  Před 7 lety

      Sent. thank you !

    • @engadnanturki9345
      @engadnanturki9345 Před 7 lety

      thank you.......
      when I change the "const int ProductCode = 1" in frmRegistration and frmGenerate
      it registered

  • @rapid418
    @rapid418 Před 4 lety

    Is there a way to deactivate the generated keys?

    • @foxlearn
      @foxlearn  Před 4 lety

      Can you describe more details? thank you !

  • @clidton
    @clidton Před 5 lety

    if computer name same then single .lic will activate all ones please update this

    • @foxlearn
      @foxlearn  Před 5 lety

      Machine ID created by hardware such as mainboard, cpu...ect

  • @ClintNetwork
    @ClintNetwork Před 7 lety

    Fox Learn how to add data or variable to a license ?

    • @foxlearn
      @foxlearn  Před 7 lety

      hi, You can add to licenseinfo. Thanks

  • @shaikhfaisal1440
    @shaikhfaisal1440 Před 5 lety

    cboLicense are not comes in liberary please help

    • @foxlearn
      @foxlearn  Před 5 lety

      please check your code again. i think you miss something

  • @ati2636
    @ati2636 Před 7 lety

    i really want to make a generator that manipulate key by the username or email address or both of them.

    • @foxlearn
      @foxlearn  Před 7 lety

      ok. Thank you for your suggestion. i'll update :)

    • @TheNintendo504
      @TheNintendo504 Před 7 lety

      can you send me the code to this email weebaymodz@gmail.com

  • @congtyphanmem4710
    @congtyphanmem4710 Před 4 lety

    Can you give me your sourcode for this video? Thanks in advance

  • @Maolana_ModiG
    @Maolana_ModiG Před rokem

    file link is dead

  • @mishraup
    @mishraup Před 5 lety

    How to use in project 1 year activation tell me???

  • @tonyo.2732
    @tonyo.2732 Před 7 lety

    Please i need the source code can you send it to me

  • @aissa761
    @aissa761 Před 5 lety

    HOW I IMPLEMENT IT IN MY APPLICATION

    • @foxlearn
      @foxlearn  Před 5 lety

      OK. Thank you for your suggestion.

  • @yeakleang
    @yeakleang Před 7 lety +1

    Please continue the video by how do we know when the key has expired?

  • @mrredcyberwarriorsallinone3094

    can u help me

  • @bristow.studios
    @bristow.studios Před 2 lety

    Pls create the same tutorial in VB.Net. If you have a time....

  • @SebakaGrief
    @SebakaGrief Před 7 lety

    FoxLearn how to make used keys?

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, You can add check license key in your startup program, thanks

    • @SebakaGrief
      @SebakaGrief Před 7 lety

      How to add a check?

    • @SebakaGrief
      @SebakaGrief Před 7 lety

      Rec pls turorial ;3

  • @jessie392
    @jessie392 Před 5 lety

    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

    • @foxlearn
      @foxlearn  Před 5 lety

      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

    • @jessie392
      @jessie392 Před 5 lety

      @@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?

  • @kotiv3776
    @kotiv3776 Před 5 lety

    i am trying but properties not accessing

    • @foxlearn
      @foxlearn  Před 5 lety

      What error are you getting? Thanks

  • @water-8470
    @water-8470 Před 5 lety

    A good tutorial just how to make that after 1 day gave a message?

    • @foxlearn
      @foxlearn  Před 5 lety

      OK. Thank you for your suggestion !

    • @water-8470
      @water-8470 Před 5 lety

      @@foxlearn You do that? Just very much needed!

  • @petslife-rafi
    @petslife-rafi Před 7 lety

    Hi, thanks for your great works!!!!...can you pls send me the code

  • @MDMASUM-nn3ze
    @MDMASUM-nn3ze Před 5 lety

    NO MATTER WHAT PRODUCT ID IS PRODUCT KEY ALWAYS VALID, 1 KEY CAN WORK ALL COMPUTER.

    • @foxlearn
      @foxlearn  Před 5 lety

      Yes, But you need to set the same product ID for all computer

  • @ankitsrivastava2182
    @ankitsrivastava2182 Před 7 lety

    sir Can You send me the source code of FoxLearn.License.Dll its important

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, You can download FoxLearn.License below this video. Thanks

    • @hossamhamdy9957
      @hossamhamdy9957 Před 6 lety

      Could you please send me source code to hhamdy@live.com

  • @franciscoit30
    @franciscoit30 Před 7 lety

    Hi FoxLearn
    Thanks, can you please send me the source code. Please?

    • @foxlearn
      @foxlearn  Před 7 lety

      Hi, What's your email? thanks

  • @sehhabadry4881
    @sehhabadry4881 Před 7 lety

    this not work at .net from wark 3.5