Sunday, September 14, 2008

Captcha for Visual Webgui

I needed a captha for one of my projects I develop using Visual Webgui.
So I found this article on CodeProject regarding simple captcha's. The next step was to create a webgui control derived from PictureBox that implement a IGatewayControl.

In short the important part is implementing GetGatewayHandler interface
IGatewayHandler IGatewayControl.GetGatewayHandler(IContext objContext, string strAction)
{
CaptchaImage img = new CaptchaImage(this.Text, this.Width, this.Height);
img.Image.Save(HttpContext.Current.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
return null;
}


This will show an scrambled image of the controls Text property in the control.
For more information on this article see it on CodeProject here
To download click here
Like this:

Saturday, March 8, 2008

SiilverLight 2.0 Beta1 Tools for Visual Studio 2008

Today I had some difficulties trying to install the SiilverLight 2.0 Beta1 Tools for Visual Studio 2008.

When I tried to install I gave me a list of possible errors - not an exact error, but a list. So I had to go through them all.

From the Microsoft website one can download the SDK 2.0 and the Tools, but what they forgot to mention is that the Tools seems to contain the SDK. And the install of the tools give an unspecified error if the SDK is already installed.

Just make sure that the SDK 2.0 is not installed when you install the Tools - it may save you time

First Blog

This is my first blog, so I'm not sure what to blog about...

Watch this space in future for more blogging about Mono, .Net, SMS and mobile technology and other General IT issues.

Monologue