Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

control shot c# WF

// doing a screenshot from control "panel2"
string filename = "временный файл.jpeg";
Bitmap printscreen = new Bitmap(panel2.Width - 5, panel2.Height - 5);
Graphics graphics = Graphics.FromImage(printscreen as System.Drawing.Image);
int top = this.Top + panel2.Top + 35;
int left = this.Left + panel2.Left + 10;
graphics.CopyFromScreen(left, top, 0, 0, printscreen.Size);
printscreen.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg);
Comment

PREVIOUS NEXT
Code Example
Csharp :: get number of sundays in a month c# 
Csharp :: Zxing Xamarin use front Camera 
Csharp :: c# entity framework order by array 
Csharp :: how to get scene color to work with urp unity 
Csharp :: how to show messagebox 
Csharp :: you have the following c# code. sb is a a very long string. you need to identify whether a string stored in an object named stringtofind is within the stringbuilder sb object. which code should you use? 
Csharp :: jtoken null or exists c# 
Csharp :: vb.net delete line from text file 
Csharp :: asp.net core get current culture in controller 
Csharp :: Return out of a Ienumerator/Courotine in C# 
Csharp :: how to make build events always run visual studio 
Csharp :: edit form item from class C# 
Csharp :: c# ile ürün çekme - htmlagilitypack 
Csharp :: c# datatable column alias 
Csharp :: skrivetækning 
Csharp :: Count Possible Decodings 
Csharp :: collection to datatable c# 
Csharp :: how to remove all controls from panel c# 
Csharp :: how to do if statement based on date in asp net c# 
Csharp :: how to make physics in unity 
Csharp :: record keyword c# 
Csharp :: parallelism in c# 
Csharp :: convert physical path to virtual path in c# 
Csharp :: NetConnectionDispatch 
Csharp :: class combining 
Csharp :: Cannot convert type child to type parent c# 
Csharp :: c# object list contains object returns incorrect boolean 
Csharp :: Find Number of Repetitions of Substring 
Csharp :: gersener waves 
Csharp :: satisfactory controller support 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =