Question

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

Was it helpful?

Solution 2

    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 !!!

OTHER TIPS

You can draw your shapes on transparent top-level window. See Layered Windows.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top