How to draw a rectangle on AxWebBrowser to high light one html element?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

Now I can get the rectangle to draw, but it seems the rectangle is not
visible. The following code is used to draw the rectangle. Hope someone can
help. Thanks very much!

SolidBrush brush = new
System.Drawing.SolidBrush(System.Drawing.Color.Red);
Pen pen = new Pen(brush, 4);
Graphics formGraphics = Graphics.FromHwnd(this.axWebBrowser.Handle);
formGraphics.DrawRectangle(pen, rect);


.



Relevant Pages

  • Re: DrawText fails when attempting to retrieve string extents
    ... DT_CALCRECT is filling Right and Bottom to make the rectangle big enough. ... using the Sprite to draw text (see documentation about ID3DXSprite::Begin ... > RECT Rect; ...
    (microsoft.public.win32.programmer.directx.graphics)
  • RE: GDI+ Clip Region allows 0.0f width pen to draw through
    ... Just to make this more outrageous if you draw the vertical lines from the ... I took the previous code I posted and made the panel anchor to all four ... private void panel1_SizeChanged ... In other words create a rectangle that is a wider than the panel. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: My earlier post was Horizontal Line
    ... The code below is the exact of my Report module. ... It can draw the table ... starting point for the line or rectangle. ... QBColor function to specify the color. ...
    (microsoft.public.access.formscoding)
  • Zero Width Pen Draws through clipped region...
    ... Exclude the rectangle from the graphics clip region. ... Draw a line down the panel. ... IF you use a pen that is more than one pixel the clipping works correctly. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Calculate the interior of a rectangle
    ... I expected them to draw from the ... native VB method to draw a small blue rectangle and the equivalent API ... Private Declare Function MoveToEx Lib "gdi32" (ByVal hdc As Long, ...
    (microsoft.public.vb.general.discussion)