Captcha Generator, random each time
Posted: Mon Jan 17, 2011 3:47 pm
Here is my captcha generator. It is an easy to use library. You simply use this code to generate a captcha:
Code: Select all
You are free to use it in any of your apps. Im running .NET 4.0 and not everyone does, so i provided both 3.5 and 4.0 versionsDim Generator As New Captcha_Generator.CaptchaGenerator
Dim Captcha As Captcha_Generator.Captcha
Generator.Size = New Size(400, 100) ' or any size you want
Captcha = Generator.Generate ' or Captcha = Generator.GenerateRandom(Characters As Integer)
Me.BackgroundImage = Captcha.CaptchaImage
Msgbox(Captcha.Value & vbCrLf & Captcha.Length)