Is it possible to draw or put something over the WebBrowser component to draw on it ?
When I add an image on WebBrowser this image is always under the WebBrowser.
I need this to draw area over different map types always in the same way.
For example I need to draw the same area on Google Maps and open street maps…
Is it possible to draw or put something over the WebBrowser component to draw
Share
You should use
IHTMLPainter.Drawevent method for doing this. The following code needs aTWebBrowserwhere you have to write theOnDocumentCompleteevent handler.Note that this example has one big weakness, the user input events like mouse clicking are active because the only thing what this example do is the painting over the element. I’ve been playing with this a little bit, but without success. This might be a good topic for another question.