-
Hi,
I'm writing a browser with a simple textfield, a command button, and the IE window. The URL is entered into the textfield and the IE will "navigate" to the URL once the command button is clicked on. I want to get rid of the command button and replace it with the "Enter" key, how is this done.
Thank you in advance for your reply...
-
Try some code like this...
These object names will not be correct so you will need to modify them accordingly...
Private Sub IEAddressBar_KeyPress(KeyAscii as Integer)
If KeyAscii = 13 Then
' If we press enter, dont include the enter key (by setting KeyAscii to 0)
' but trigger the event to navigate to the address or what
' ever you want to execute at this point
KeyAscii = 0
IEObject.NavigateURL
End If
End Sub