Horje
c# draw rectangle on screen Code Example
c# draw rectangle on screen
using System.Drawing;
using System.Runtime.InteropServices;
        [DllImport("User32.dll")]
        public static extern IntPtr GetDC(IntPtr hwnd);
        [DllImport("User32.dll")]
        public static extern void ReleaseDC(IntPtr hwnd, IntPtr dc); 

IntPtr desktopPtr = GetDC(IntPtr.Zero);
                Graphics g = Graphics.FromHdc(desktopPtr);


                SolidBrush b = new SolidBrush(Color.White);
                g.FillRectangle(b, new Rectangle(0, 0, 1920, 1080));

                ReleaseDC(IntPtr.Zero, desktopPtr);
                g.Dispose();




Csharp

Related
anidate bucle in c# Code Example anidate bucle in c# Code Example
List of border roleplays roblox Code Example List of border roleplays roblox Code Example
how to move mouse with c# Code Example how to move mouse with c# Code Example
c# json contains property Code Example c# json contains property Code Example
c# chance of Code Example c# chance of Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10