Creating a Web Browser, Page 7
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.