473,378 Members | 1,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 1170
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
6
by: Mark A. Sam | last post by:
Hello, I am strictly an Access Developer with limited exposure to ASP. My client wants to put his database online through a brower, which would mean using Thin Client Web ( I think that is the...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
1
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.