I have a WebBrowser control with a transparent panel over the top of it, what I am trying to do is draw a rectangle on the transparent panel around the element in the page that
Did you try:
graphics.Clear(Color.Transparent);