Archive for April, 2007

Capture Screen using C#

private Bitmap screenBitmap; // It will grab the size of your current screen.
Rectangle screenRegiion = Screen.AllScreens[0].Bounds;

 // It will create the bitmap of the specified region.
screenBitmap = new Bitmap(1024, 768, PixelFormat.Format32bppArgb);

// It will copy the current screep image to the bitmap image.
Graphics screenGraphics = Graphics.FromImage(screenBitmap);
screenGraphics.CopyFromScreen(screenRegiion.Left, screenRegiion.Top, 0, 0, screenRegiion.Size);

screenBitmap.Save(@”c:\test.bmp”);

Comments (2)

Use gmail Account as pop3 and smtp in ASP.NET

Do you know ???
You can use your gmail account as a pop3 and smtp in ASP.NET or win applications …… You might need to enable your smtp and pop3 from your account.

SMTP: smtp.gmail.com
PORT : 587

POP : pop.gmail.com
PORT : 995

Leave a Comment