Private Sub textbox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Asc(e.KeyChar) = Keys.Enter Then WebBrowser1.Navigate("http://www.google.com/search?hl=en&q=" & TextBox1.Text) 'Google Search e.Handled = True End If End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question