Click here to Skip to main content
15,888,250 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,
I Have a text box in my form in C# I want when i write a URL in my text box and press Going button first I go to that website and my text box writed in that website search text box and go to writed URL.
thank you.
Posted

Hi,

You'll have to use some thing like this

Process.Start("http://abc.com");


///use txtbox.Text instead of abc.com
 
Share this answer
 
Comments
_Starbug_ 2-Aug-11 6:10am    
can you include full code for example or a source code such as this
write the website name in your textbox

C#
textBox1.Text = "abc.com";


C#
private void Button1_click(object sender, EventArgs e)
{
Process.Start("http://www."+textBox1.Text);//This opens in your default browser
}
 
Share this answer
 
Comments
_Starbug_ 2-Aug-11 6:30am    
Thank you your answer is correct but Actually I want when I run my program and write a URL in my text box first my browser open and go to the Http://www.zorro.ir/s and in this websites text box place my text box and go to that
Praveen Kullu 2-Aug-11 6:48am    
Do you want to browse the website in your own form? Have you used a webbrowser control in your form?
_Starbug_ 2-Aug-11 7:09am    
No I do not want

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900