Status bar for web browser

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i have a small browser. in IE, when you hover over a link, the text in the
status bar changes to the URL. how do i do that? and when you type in some
text into the address bar and press enter, the go button is clicked. how do i
do that instead of having to lose focus from the combobox and click the
button with the mouse.

please take your time to answer this question, thanks in advance and have
nice holidays
 
private void toolStripComboBox1_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
webBrowser1.Navigate(toolStripComboBox1.Text.ToString())

}
}

I had to add the following to designer.cs as well
this.toolStripComboBox1.KeyUp += new
System.Windows.Forms.KeyEventHandler(this.toolStripComboBox1_KeyUp);


Now I am a complete noob so if someone know a better way to do this let me
know :)
 
Back
Top