Question on Microsoft Visual Studio 2005 C# Express Edition

  • Thread starter Thread starter paulrosenthal
  • Start date Start date
P

paulrosenthal

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
 
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.SpecialFolder.ProgramFiles )+"\\intern
et explorer\\iexplore.exe";
process.Start();

Ab.
http://joehacker.blogspot.com
 
Hello,

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

Thanks,
Paul
 
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.
 
Back
Top