January 17, 2021
Hot Topics:

Creating a Web Browser

  • By Karl Moore
  • Send Email »
  • More Articles »

As most users are acquainted with typing their Web addresses into Combo Boxes, you may want to use the same.

However Internet Explorer allows you to either press the 'Go' button to visit the typed site, or merely hit return. You can detect if return has been pressed like this:

Private Sub Combo1_KeyPress(KeyAscii As Integer)

    If KeyAscii = vbKeyReturn Then
        WebBrowser1.Navigate (Combo1.Text)
    End If

End Sub

It's also possible to turn a regular Text Box into an Internet Explorer 5 style Web address list with the help of a very sneaky API call.

Page 7 of 8

This article was originally published on November 20, 2002

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date