469,097 Members | 1,583 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,097 developers. It's quick & easy.

Question on Microsoft Visual Studio 2005 C# Express Edition

Hello,

I am building a program and I have a question. One of the features is
sort of a quick version to get to a website. They will have a text box,
which they put in the address. They will then have a "Go" button. That
will load up internet explorer with the address they typed in. I would
also like to do something a little like that. They have a text, which
they will put what they want to search for, and then the button will
say "Search Google". Can I please have the codes and how to do this?
Thanks,
Paul

Nov 17 '05 #1
4 1075
Hi,
Use the Process class located in System.Diagnostics.
try this:

Process process = new Process();
process.StartInfo.Arguments = <--- your url here
process.StartInfo.FileName =
Environment.GetFolderPath(Environment.SpecialFolde r.ProgramFiles )+"\\intern
et explorer\\iexplore.exe";
process.Start();

Ab.
http://joehacker.blogspot.com
<pa***********@juno.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hello,

I am building a program and I have a question. One of the features is
sort of a quick version to get to a website. They will have a text box,
which they put in the address. They will then have a "Go" button. That
will load up internet explorer with the address they typed in. I would
also like to do something a little like that. They have a text, which
they will put what they want to search for, and then the button will
say "Search Google". Can I please have the codes and how to do this?
Thanks,
Paul

Nov 17 '05 #2
Paul,

You can use the process start for that.

\\\
System.Diagnostics.Process p =
new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo pi =
new System.Diagnostics.ProcessStartInfo();
pi.FileName =
"http://www.google.com/search?hl=en&q=juno.com&btnG=Google+Search";
p.StartInfo = pi;
p.Start();
///

I hope this helps,

Cor

<pa***********@juno.com> schreef in bericht
news:11*********************@g44g2000cwa.googlegro ups.com...
Hello,

I am building a program and I have a question. One of the features is
sort of a quick version to get to a website. They will have a text box,
which they put in the address. They will then have a "Go" button. That
will load up internet explorer with the address they typed in. I would
also like to do something a little like that. They have a text, which
they will put what they want to search for, and then the button will
say "Search Google". Can I please have the codes and how to do this?
Thanks,
Paul

Nov 17 '05 #3
Hello,

Thank you very much for all of your replies. If possible, could I
please have step-by-step instructions?

Thanks,
Paul

Nov 17 '05 #4
<pa***********@juno.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello,

Thank you very much for all of your replies. If possible, could I
please have step-by-step instructions?

Thanks,
Paul


have you written any code yet? might be best to start with some C# windows
form tutorials.
Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.