int width, height; width = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Width; height = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Height; Bitmap MyBit; Rectangle screenRegion = Screen.AllScreens[0].Bounds; MyBit = new Bitmap(width, height, PixelFormat.Format32bppArgb); Graphics MyGraph = Graphics.FromImage(MyBit); MyGraph.CopyFromScreen(screenRegion.Left, screenRegion.Top, 0, 0, screenRegion.Size); sBit.Save(<>);
Wednesday, March 17, 2010
Print Screen using C#
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
SQL Server has never been short of ways to read from and write to files and it is always better to use the standard techniques provided b...
-
This article demonstrates the way to work with WPF BorderBrush. The Border control in WPF is used to draw a border along the edges of a c...