Scott Weinstein
12/12/2004 6:59:00 AM
I have the need to draw on top of an existing Windows application, and if
the window is not maximized I also need to draw outside of the window frame.
However, I need the existing Windows application to remain activated.
my first attempt at doing this I created a transparent form, maximized it,
and did my drawing. That worked well, but if my transparent form was
activated, the existing Windows application wasn't, and if the existing
Windows application was activated, the area overlapped didn't show my new
drawing.
So then I split the work, by using a transparent Windows form for the area
outside the application and the following for the area inside the app.
Dim g As Graphics = Graphics.FromHwnd(BaseWindow.Handle)
but the solution seems clumsy, and I don't know how to clear the drawing
created by the above line.
are there any suggestions on how to do this the correct way?
--Scott