Page 1 of 1

Captcha Generator, random each time

Posted: Mon Jan 17, 2011 3:47 pm
by MrAksel
Here is my captcha generator. It is an easy to use library. You simply use this code to generate a captcha:
Code: Select all
Dim 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)
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 versions

Re: Captcha Generator, random each time

Posted: Mon Jan 17, 2011 4:06 pm
by Skillful
The code you provided does not work for me. It throws up an exception while debugging.

Re: Captcha Generator, random each time

Posted: Mon Jan 17, 2011 4:51 pm
by Usman55
I get it too some thing invalid I guess.

Re: Captcha Generator, random each time

Posted: Mon Jan 17, 2011 5:18 pm
by M1z23R
It doesn't work :( 3 credits lost xD

Re: Captcha Generator, random each time

Posted: Mon Jan 17, 2011 6:15 pm
by MrAksel
Ohh sorry guys, on witch line does the error occour? Ill send you all a new version if ill manage to fix it