Friday, June 8, 2007

How to take ScreenShot in C#

To create a screenshot in c# we need to use drawing api of the .net framework

First you have import System.Drawing.Imaging name space with following code...

using System.Drawing.Imaging;

here is the code in C# for screenshot.

int screenWidth = Screen.GetBounds(new Point(0, 0)).Width;
int screenHeight = Screen.GetBounds(new Point(0, 0)).Height;
Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);
Graphics gfx = Graphics.FromImage((Image)bmpScreenShot);
gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight));

bmpScreenShot.Save("test.jpg", ImageFormat.Jpeg);
Share:
Thursday, June 7, 2007

Create a Site Search Engine in ASP.NET - SiteSearch.aspx

I have found a very interesting link to design search engine in asp.net. Which describes the sorting and searching mechanism in result data grid.

following the link of that article.............

http://www.developerfusion.co.uk/show/4389/2/
Share:
Wednesday, June 6, 2007

Micorosft Acropolis CTP 1 released.


Microsoft code name “Acropolis” Community Technology Preview 1 is a bundle of components and tools that make life easier for developers to build and manage modular, business focused, client .NET smart applications.

To Download Acropolis click Here


To Know more about acropolis download Introducing video from here

Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews