EDIT - Based on the CuddleBunny comment, I created a class that will basically "draw graphics on the screen."
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApplication4 { class test : Form { public test() : base() { this.TopMost = true; this.DoubleBuffered = true; this.ShowInTaskbar = false; this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; this.BackColor = Color.Purple; this.TransparencyKey = Color.Purple; } protected override void OnPaint(PaintEventArgs e) { e.Graphics.DrawRectangle(Pens.Black, 0, 0, 200, 200); this.Invalidate();
Hope this helps.
old wrong answer
You can get hwnd of another window and do it. I'm not sure how to draw in full screen, although I always thought about it myself.
A simple example:
Process p = Process.GetProcessById(0);
source share