There are two ways to put drawings on top of child controls. The first is
to draw directly on the desktop. The second is to use a layered window and
put that on top of everything else.
To draw on the desktop you need a wee bit of interop to import the GetDC
and ReleaseDC methods. Get a DC for the desktop using null as a window
handle, wrap the returned DC in a Graphics object using Graphics.FromHdc,
Draw on the desktop, dispose of the Graphics object and release the DC
again.
If you search in the VB group you'll find an answer I gave someone an
answer with a layered window solution.
The post was dated 30th march and entitled "Re: Using The NativeWindow
Class To Draw A GDI Type Circle On Top Of A DataGrid Possibly In The
Override OnPaint"
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.