On Fri, 9 Dec 2005 19:38:01 -0800, "Mateusz Rajca"
<Ma**********@discussions.microsoft.com> wrote:
Hello,
I am creating a web browser and have some questions:
1. What code should I add so instead of clicking on "Go" I can press enter?
2. How can I create Favorites?
Mateusz
For 1 you need to intercept the key press event in your URL TextBox
and point it at your Go button click action. Something like:
private void URLTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Enter) {
GoButton_Click(sender, e);
} // end if
}
rossum
The ultimate truth is that there is no ultimate truth