473,513 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Captcha image

103 New Member
Hi all,

I displaed some random numbers in a textbox..

I am having a captcha image and i would like to display that random numbers in captcha image..

The code i used to display the random numbers in a textbox is shown below...

Random r = new Random();
StringBuilder sb = new StringBuilder();

string s= "A67Bt12uvwxyEFXYZaKLMpqrsz345NOPQRSTUVWbcdefghijk lmno890";

for(int i=0;i<10;i++)
{
txtRandom.Text = sb.Append(s[r.Next(i)]).ToString();

}

Please help me display the random numbers in an image...

Regards,

Mathew
Nov 14 '07 #1
4 1491
Plater
7,872 Recognized Expert Expert
Create a bitmap class. Get the Graphics object for it.
Then use the DrawString() function.
Also, check google.
Nov 14 '07 #2
mathewgk80
103 New Member
Create a bitmap class. Get the Graphics object for it.
Then use the DrawString() function.
Also, check google.

Hi Plator,

I dont know how to create a bitmap class and diplay the text in the image...

Please help me...

Regards,
Mathew
Nov 14 '07 #3
Plater
7,872 Recognized Expert Expert
As I suggested, google can find you things.

http://msdn2.microsoft.com/en-us/lib...ng.bitmap.aspx

http://www.google.com/search?hl=en&s...n+.net&spell=1
Nov 14 '07 #4
6502kid
6 New Member
This example shows how to make that happen:

http://jcaptcha.webregistrationservices.com/
Mar 28 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2757
by: Krishna Kumar | last post by:
Hai all, I am doing a project in .net and in that project I have a problem in capturing text from an image. i.e images like CAPTCHA images . which has inbuilt text with in the image.So,...
0
1415
by: want2learn | last post by:
Hi. I have this CAPTCHA image for .Net in C-Sharp and translate it into VB and as Code_Behind. http://www.mbarrick.com/blog/d6plinks/20061221-01 If i run the site/script i get the site but...
0
1723
by: aaronwmail-usenet | last post by:
Announcing SkimpyGimpy Support for PNG image CAPTCHA generation and PNG canvases. You can now use SkimpyGimpy to generate CAPTCHA text representations as PNG image files in addition to...
7
10131
by: mitchell | last post by:
hi i m using IE 6.0. i want to refresh just the captcha part when the user clicks on an image. i searched for articles on it and got a fairly good understanding of it. but i m still unable to...
4
5769
by: xeiter | last post by:
Hi, I have a captcha script on my website located at /captcha.php. What it does it generates an image with the code, displays the image (gd2) and saves the value of the code in session. How do I...
11
2403
by: Twayne | last post by:
Hi, Learning PHP code; playing with various methods of generating captcha codes: In the code below, how would I change the size of the text displayed in the captcha code? Is it even possible...
0
1577
by: readnlearn | last post by:
hai, i have written this below code for displaying captcha image whenever i entered incorrect uname,password in login page. for that i disable the controls of captcha like textbox,labels,button and...
10
7825
by: jeddiki | last post by:
Hi, I have a captcha script which should pick up a background image and add some random letters to it and re-display This is the part of the form that the captcha image is part of: <span...
1
2570
by: swatcat | last post by:
Hi I have implemented Captcha in JAVA using Buffered Image and finally using write of ImageIO But the File into which i am writing is not getting updated ImageIO(image,"jpg",new...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.