In my application , i want to print / draw dots (or any shapes) on the given coordinates by the application.I want to draw the dots / shape on the desktop screen.
Are there any function in C# to print/draw the dots on given screen coordinates ?
IDE - Visual Studio 2012
Thanks in advance
using System.Drawing;
Graphics g;
using (g = Graphics.FromHwnd(IntPtr.Zero))
{
g.DrawEllipse(Pens.Red, x,y, 20, 20);
}
This piece of code code worked !!!