As Peter D. indicated, it sounds like you are looking for a CAPTCHA control.
If you search on "ASP.NET CAPTCHA CONTROL" you'll find plenty of sample code.
-- Peter
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
MetaFinder:
http://www.blogmetafinder.com
"Stratum" wrote:
> I'm looking for some method, possibly in a .Net class that I don't
> about, for converting a text image to an image file in GIF or
> JPEG format. The application is a form (could be a Web form
> or a Windows form on an Internet-connected computer) where
> the user types the contents of a randomly generated string
> which is displayed in the form of an image.
>
> You would encounter such a form, for instance, when
> registering a software product, or submitting some kind
> of information on a form that you don't want submitted
> by an automated mass mailer... in other words, a spammer.
> The string on the image must be manually typed
> in order to submit the form.
>
> Generating the string is no problem. Rasterizing it to
> an image is the big deal.
>
> Anyone know of a method, preferably in C#?
>
>