![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member (25+)
Join Date: Jun 2009
Location: Mesquite, NV (about 75 mi from Las Vegas)
Age: 15
Posts: 25
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
![]() OS:
|
webBrowser textBox navigation
I have been really annoyed by this one. I use webBrowser, textBox1 (for navigation) and button1 on a GroupBox.
my code for my button1 to navigate to whatever is in the textBox1 works fine (here is the following code) private void button1_Click(object sender, EventArgs e) { { webBrowser1.Navigate(textBox1.Text); } } Keep in mind this is private void not private sub (don't even know the difference) I was wondering if anybody knew a private void, etc C# code so upon clicking enter within the textBox1 after entering the URL, it would navigate. Currently, whenever I click enter, it makes a dull beep that is what annoys me and I am forced to go over to the button1 and click it. Thanks ahead of time. |
|
|
|
|
|
#2 |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: webBrowser textBox navigation
add a keypress event to the text box and if keycode is 13 then call
webBrowser1.Navigate(textBox1.Text);
__________________
Please don't click here |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |