Click here to Skip to main content
15,881,248 members
Articles / Programming Languages / Visual Basic
Article

VB.NET 2003 User Registration Form (2.1)

Rate me:
Please Sign up or sign in to vote.
4.29/5 (49 votes)
10 Dec 20063 min read 261.2K   14.8K   97   99
A simple registration form that includes support for trial periods and key generation. Now updated to version 2.1!

Downloads

 Screenshots
Screenshots showing the main screen and the registration screen (scaled down).

Introduction

I was looking for a way to register a program to a user and I was very dissatisfied with the lack of existing programs, so I decided to create my own. The program, PAW Register, is an easy to customize, simple, and powerfull application programed in VB.NET 2003 (it should also upgrade to VB.NET 2005 without too many problems, I haven't tested this though).

Update:

  • Version 2.0 is now out! If you're running the old version, I'd recommend you upgrade if possible. The old code had many bugs, and was fairly insecure.

Bug Reports:

  • Error in loading some registry entries. Download the newest release or see the form below for the fix.

  • If you're getting an error on the last Imports line, re-reference the .dll located in the bin folder.

  • If you are getting a "File not found" error when starting up the key generator, please ensure "settings.set" (as distributed in the release) is in the same folder. Alternatevely, you can ignore the error by clicking "Continue" when this error occurrs. You'll need to type your skey code each time you want to generate a key, however.

  • If you find any errors please submit them (with the solution if you've found one) to the forum below. I'll usually reply within a day.

The Program

The program itself is fairly simple. It contains three buttons, and an image functioning as a progress bar. One button allows the user to continue (assuming they have not been using the program for more than the preset limit), one allows the user to enter a code, and one allows them to visit the buy now website.

Using the Program

You can download the program source above. It took me about 5 hours to write the code. To use it you add the two forms to your project and set Form1 as the startup project. You'll also need to change the variables in the Required Modifications region in Form1. There are quite a few things to change here, however they're described in detail in the program.

You'll also need to open the form "regsiter" and change the encryption key near the top of the file.

Development

I started (v. 1.0) with the idea of making a simple to customize registration box. I used a Triple DES encryption method by Tony Selke (found here) to check the keys. I used a modified Date Arithmetic program by Jay Tanner (found here) to calculate the time passed (I converted this from VB6). However, the encryption code made the serial numbers strange and the Date Arrithmetic code had too many bugs.

Back in August I started on version 2.0, however I was quite busy with other projects (namely NoFooling 2.0), so I was unable to get much anywhere until mid-December. However, now that it's done, I think it was a good use of my time, and I'm sure you'll agree it was well worth the wait.

I hope you all enjoy the code, I really have no use for it, everything I write is freeware. :P

Usage Restrictions

The only usage restriction is that the copyright must remain at the top of the main file and that you must give credit where credit it due (you can't call the code your own). If you'll notice, there is an about icon in the top-right corner displaying a form with my information. This is completely optional! To disable it, just change "SupportMe" in the Options sub-region to false; don't delete it or your code will fail on compile.

Copyright

The program is the copyright © of Tyler Menezes. Some rights reserved (see Usage Restrictions). The article is copyright © 2006 Tyler Menezes. The Code Project owns the non-exclusive right to modify, distribute, and copy the article.

License

The program is licensed under the Creative Commons Attribution License 2.5.

Downloads

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Tyler Menezes is a web designer and Windows developer. His personal site is http://www.tylerm.info/

Comments and Discussions

 
QuestionWill not reinstall Pin
skyhawkap10-Jul-07 4:06
skyhawkap10-Jul-07 4:06 
AnswerRe: Will not reinstall Pin
skyhawkap10-Jul-07 4:27
skyhawkap10-Jul-07 4:27 
GeneralRe: Will not reinstall Pin
tylermenezes11-Jul-07 13:09
tylermenezes11-Jul-07 13:09 
GeneralOnce Registered... Pin
Ron Sell1-May-07 5:47
Ron Sell1-May-07 5:47 
GeneralRe: Once Registered... Pin
tylermenezes2-May-07 12:54
tylermenezes2-May-07 12:54 
GeneralC# code Needed Pin
hooshang Karami10-Apr-07 1:49
hooshang Karami10-Apr-07 1:49 
GeneralRe: C# code Needed Pin
tylermenezes10-Apr-07 12:51
tylermenezes10-Apr-07 12:51 
Generalconversion to C# Pin
webseal14-Mar-07 22:51
webseal14-Mar-07 22:51 
Hi Tyler,
first let me thank you for your efforts to create this nice piece of code.

I want to use your registration form within my c# application. So far I had no luck in moving your VB forms into my code. So I thought about convertig your code into C#.

Do you think this is possible from a technical view, and even more important, do you allow that I convert your code to C# and use it in my app? Of course I will keep your Usage Restrictions and copyrights.

Thanks

Dirk
GeneralRe: conversion to C# Pin
tylermenezes15-Mar-07 12:46
tylermenezes15-Mar-07 12:46 
QuestionNothing is secure/hidden Pin
Nasir_Awan8-Mar-07 7:52
Nasir_Awan8-Mar-07 7:52 
AnswerRe: Nothing is secure/hidden Pin
tylermenezes11-Jul-07 13:17
tylermenezes11-Jul-07 13:17 
GeneralRe: Nothing is secure/hidden Pin
MulleDK1912-Feb-08 6:12
MulleDK1912-Feb-08 6:12 
GeneralRe: Nothing is secure/hidden Pin
Bit-Smacker5-Feb-09 12:50
Bit-Smacker5-Feb-09 12:50 
GeneralRe: Nothing is secure/hidden Pin
tylermenezes5-Feb-09 13:05
tylermenezes5-Feb-09 13:05 
GeneralBackend key deliever Pin
chrishuff25-Jan-07 4:13
chrishuff25-Jan-07 4:13 
GeneralRe: Backend key deliever Pin
tylermenezes25-Jan-07 15:22
tylermenezes25-Jan-07 15:22 
GeneralRe: Backend key deliever Pin
dawmail3337-Jul-08 0:42
dawmail3337-Jul-08 0:42 
Generalsearching this since a long time...but... Pin
scalpa9829-Dec-06 4:39
scalpa9829-Dec-06 4:39 
GeneralRe: searching this since a long time...but... Pin
tylermenezes29-Dec-06 7:38
tylermenezes29-Dec-06 7:38 
GeneralRe: searching this since a long time...but... Pin
webseal21-Feb-07 10:24
webseal21-Feb-07 10:24 
GeneralRe: searching this since a long time...but... Pin
tylermenezes11-Jul-07 13:18
tylermenezes11-Jul-07 13:18 
GeneralReading Encrypted Entries from Registry Pin
hkinser915-Dec-06 16:44
hkinser915-Dec-06 16:44 
GeneralRe: Reading Encrypted Entries from Registry Pin
tylermenezes15-Dec-06 17:25
tylermenezes15-Dec-06 17:25 
GeneralRe: Reading Encrypted Entries from Registry Pin
hkinser915-Dec-06 18:48
hkinser915-Dec-06 18:48 
Generalcool Pin
tyfgh4513-Dec-06 9:49
tyfgh4513-Dec-06 9:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.