Results 1 to 2 of 2

Thread: crop internet browser?

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    USA
    Posts
    37

    Arrow

    I placed a rotating banner from my website in my application. The problem is that I only want the browser to show the banner and none of the surrounding website. How can I crop the browser to show only the banner?

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    Add a Picturebox to the Form and place the WebBrowser control within it (so the Picturebox is the WebBrowsers Parent.), i.e.
    Code:
    Private Sub Command1_Click()
        On Error GoTo Load_Cancel
        With CommonDialog1
            .CancelError = True
            .DialogTitle = "Open an Animated GIF"
            .Filter = "GIFS (*.GIF)|*.GIF"
            .ShowOpen
            WebBrowser1.Navigate .FileName
            WebBrowser1.Move ScaleX(-12, vbPixels, vbTwips), ScaleY(-19, vbPixels, vbTwips), Width, Height
            Picture1 = LoadPicture(.FileName)
            Picture1.AutoSize = True
        End With
    Load_Cancel:
    End Sub

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