i was tring to allow Ctrl + enter like in IE u can type google, then Ctrl + enter then, "www." and ".com" will be added. but i did it using a button already, in the button click event i did, the code maybe wrong but its something like that - i am typing from school, i don't have vb in this lab
if txtAddress.text not like("www.*.com") then
txtAddress.text &= txtAddress.text.insert(0, "www.")
txtAddress.text &= txtAddress.text.insert(txtAddress.text.length, ".com")
well if you have a textbox, txtaddress, and you press control and enter, you could check to see if those keys are pressed and if so then do your thing. implement the keydown event then do the following...
if e.Control = true AND e.KeyCode = Keys.Enter then
if Me.txtAddress.Text.StartsWith("www.") = false then
Me.txtAddress.Text = Me.txtAddress.Text.Insert(0, "www.")
end if
if Me.txtAddress.Text.EndsWith(".com") = false then
Me.txtAddress.Text = Me.txtAddress.Insert(Me.txtAddress.Text.Length, ".com")
end if
Me.theWebBrowser.Navigate(Me.txtAddress.Text)
end if