Results 1 to 8 of 8

Thread: VB - A Program Registration Scheme

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    13

    Lightbulb VB - A Program Registration Scheme

    Hi,im looking for a source of hd serial check,cause im making a program but i dont want everybody use it so im trying to find a ocx or source that let me add it to my program,so when people open the program it ask for the first time if u have valid key then it let u use it and it dont ask u again but if it wrong it will ask for the up to u have a valid key

  2. #2
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: VB - A Program Registration Scheme

    Quote Originally Posted by BaNdO
    Hi,im looking for a source of hd serial check,cause im making a program but i dont want everybody use it so im trying to find a ocx or source that let me add it to my program,so when people open the program it ask for the first time if u have valid key then it let u use it and it dont ask u again but if it wrong it will ask for the up to u have a valid key
    plenty of examples in the codebank

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    13

    Lightbulb Re: VB - A Program Registration Scheme

    Quote Originally Posted by BrailleSchool
    plenty of examples in the codebank


    i can't find what im looking cause i know how to get the hd serial but not to make what i posted b4 any example?

  4. #4

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    13

    Lightbulb Re: VB - A Program Registration Scheme

    now cause i have the example of retrieve the serial,im looking on how to add the key to the registry so that form it wont load again just when u dont got the serial it will show up

  6. #6
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: VB - A Program Registration Scheme

    VB Code:
    1. 'to save it
    2. SaveSetting "myAppName", "Registration", "RegKey", [B]yourSerialVariable[/B]
    3.  
    4. 'to get it back
    5. [B]yourSerialVariable[/B] = GetSetting("myAppName", "Registration", "RegKey", [B]vbNullChar[/B])  '<- vbNullChar or 0 if you have a numeric value
    6.  
    7.     If yourSerialVariable = correctSerialNumber Then
    8.         frmMain.Show
    9.     Else
    10.         frmRegistration.Show
    11.     End If

  7. #7

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    13

    Lightbulb Re: VB - A Program Registration Scheme

    than you my brother!!!!!!!!!!!!!!!!!!!!!!

    www.vbforums.com #1 best of all ; )

  8. #8
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: VB - A Program Registration Scheme

    Quote Originally Posted by BaNdO
    than you my brother!!!!!!!!!!!!!!!!!!!!!!

    www.vbforums.com #1 best of all ; )
    Take it easy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width