Results 1 to 9 of 9

Thread: Web Browser

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 1999
    Posts
    44

    Post

    Hey Megatron,

    How did you get it(HTML code) to show up like it does in notepad? I have been trying to do that for a while.

    Thanks,
    Lloyd

  2. #2
    Member
    Join Date
    May 1999
    Posts
    49

    Post

    There's an excellent Web browser control at www.homepagesw.com - provided you're prepared to pay for it. There's a free download demo for 30 days or so.

  3. #3
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    You mean a Web Browser made with VB?

    A Real Web Browser, complete with a Combo Box where you type your address, a Visited links Address List Box, Next and Previous Buttons, etc.? All in VB?

    Then visit:
    http://visualbasic.about.com/compute...y/aa120798.htm

  4. #4
    Guest

    Post


    I'm trying to make a Web Browser. So far, I
    can only make the Web Page appear in Text
    Format ie: it looks exactly how it does when you open it in notepad.

    How would I change this so it's in HTML
    format? Is there any control thatm does
    it?


  5. #5
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    The easiest way would be to use the WebBrowser Control, otherwise you'll need to use something like a Picturebox or a RichTextBox and you'll then have to interpret and Format the Data Manually.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  6. #6
    Member
    Join Date
    May 1999
    Posts
    49

    Post

    Important to remember, though, that Juan Carlos's idea only works if the user has Internet Explorer 4 (4 at least, I think) installed - it relies on that .dll. So if you're going to distribute your App, you also have to impose IE 4 on your user.

    This is a nightmare. First of all, a lot of people don't like having to do this, it can screw up entire networks (it did with us, anyway), and our product stopped working when the user installed IE5.

  7. #7
    Guest

    Post


    Aaron Young: can you give me an example of how to use the Web Browser
    control?

    Lloyd: I downloaded an example to get
    the HTML code. It's on this site. I think
    the catagory is called "using the internet
    transfer control" If you manipulate it, then
    you'll be able to do so.

  8. #8
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Right click your Controls Toolbar and Select Components.. Locate Microsoft Internet Controls and Check it.

    Add the Webbrowser control to the Form with a Textbox..
    Code:
    Private Sub Form_Resize()
        Text1.Move 0, 0, ScaleWidth, Text1.Height
        WebBrowser1.Move 0, Text1.Height, ScaleWidth, ScaleHeight - Text1.Height
    End Sub
    
    Private Sub Text1_KeyPress(KeyAscii As Integer)
        If KeyAscii = vbKeyReturn Then
            WebBrowser1.Navigate Text1
        End If
    End Sub
    This turns your whole Form into a WebBrowser, just type in a URL and press Enter.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  9. #9

    Thread Starter
    Member
    Join Date
    Jun 1999
    Posts
    44

    Post

    Thanks Megatron!!

    Lloyd

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