TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Programming

Notices

webBrowser textBox navigation

Programming


Reply
 
Thread Tools Display Modes
Old 20-06-2009, 04:59 AM   #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 AdvancedSoftware is an unknown quantity at this point


OS: Windows XP


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.
AdvancedSoftware is offline   Reply With Quote
Old 20-06-2009, 06:43 PM   #2
ƒ(ψ)=ΘΊΧφ
 
bakuryu's Avatar
 
Join Date: May 2006
Location: India
Age: 23
Posts: 6,621
Thanks: 19
Thanked 645 Times in 603 Posts
Rep Power: 87 bakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant futurebakuryu has a brilliant future


OS: Windows XP Windows Vista Windows 7


Send a message via Yahoo to bakuryu
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
bakuryu is offline   Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 01:14 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional