Results 1 to 10 of 10

Thread: [Resolved]Rectangles

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    33

    [Resolved]Rectangles

    ok, i know how to draw a rectangle and fill it but how do i make it visible over a WebBrowser control, also how would i make the FillRectangle 60% transparent? i have found no understandable results on google. could someone please help me figure this out?

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim myGraphics As Graphics
    Dim MyBrush As New SolidBrush(Color.FromArgb(128, 0, 0, 255))
    myGraphics = Graphics.FromHwnd(TextBox1.Text)
    myGraphics.FillRectangle(MyBrush, New Rectangle(0, 0, 100, 100))

    End Sub
    Last edited by vipkid; Jun 29th, 2010 at 01:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width