471,337 Members | 939 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Web Browser Help Needed!

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
Dec 10 '05 #1
1 893
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
Dec 10 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Simon Wigzell | last post: by
34 posts views Thread by Charles Douglas Wehner | last post: by
16 posts views Thread by Java script Dude | last post: by
14 posts views Thread by Nick K. | last post: by
15 posts views Thread by tshad | last post: by
27 posts views Thread by David Golightly | last post: by
10 posts views Thread by Conrad Lender | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.