473,624 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I launch internet explorer in Visual Studio 2005, using VB language?

10 New Member
Dear sir/madam,

As part of my project, I need to send queries from my website to Google search engine. The query needs to be send directly to the URL.
Thus, need to launch internet explore from visual studio 2005 (web development).

i have used the following Shell command, which is not working;

Dim IE
IE = Shell("C:\progr am Files\internet explorer\iexplo re.exe http://www.google.co.u k/search?" + TxtWebSearch.te xt, 1)

* TxtWebSearch is the name of the text box; where i would be typing in my query.

Please note that the above code works well in visual basic 6.0

If possible, could you please advice me,
Many thanks.
Oct 3 '06 #1
4 6474
radcaesar
759 Recognized Expert Contributor
Use System.Diagnost ics.Process("ie xplore.exe");
Oct 3 '06 #2
Faez
10 New Member
Thank you,

I have used the above code, but not successful; the code was accepted (no error showing) however at run time it did not open an Internet Explorer. I have also tried the following code:

System.Diagnost ics.Process("ie xplore.exe http://www.google.co.u k/search?" + TxtWebSearch.te xt, 1);

*It is essential for me to have the ‘TxtWebSearch.t ext’ as I want to send queries to Google via URL (Internet Explorer address box)

Could you please advice me if I need to add anything in the beginning of this code or if I am missing syntax.

Many Thanks,
Oct 5 '06 #3
anaphaxeon
30 New Member
System.Diagnost ics.Process.Sta rt("iexplore.ex e","url here")

I've never tried in VB but if you try to stick the url next to the iexplore.exe, it will puke. The syntax is System.Diagnost ics.Process.Sta rt(<path to executable>, <parameters>) .
Oct 6 '06 #4
Faez
10 New Member
Thank you very much, your support is most appreciated.

i can now open a new internet explore, however, i cannot add the content in the text box, as the system does not add (recognise) the <+ "TextBox1.Text" > to the code, thus, nothing happens; the content of the text box is not added to the URL address.

System.Diagnost ics.Process.Sta rt("iexplore.ex e", "http://www.google.co.u k/search?" + "TextBox1.Text" )


i have tried the following codes , but it didn't work

System.Diagnost ics.Process.Sta rt("iexplore.ex e", "http://www.google.co.u k/search? + TextBox1.Text")

System.Diagnost ics.Process.Sta rt("iexplore.ex e", "http://www.google.co.u k/search?", "TextBox1.Text" )


if possible, could you please advice me.
Oct 9 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1099
by: Tom Serface | last post by:
I attended the VS Launch in San Francisco yesterday. To be fair, the launch was shared with SQL Server 2005 and BizTalk 2006, but I was mostly interested in Visual Studio. Most of the special talks were centered around using VS with SQL and BizTalk as expected, but I got a chance to talk to lots of experts and I came away with a couple of impressions: 1. I can't wait to start using VS 2005 as a C++ programming. The improvements to MFC...
2
2289
by: CathieC | last post by:
I have a websote developed using visual studio 2005 beta , .net version 2 i deploy my application to a server and it is run from client computers. One of the users gets the error "Internet Explorer cannot open the internet site "XXXXX" Operation aborted" this happens when they click on a menu item to open a page. they do not get
1
3502
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that products events which I want to consume (sink) within Internet Explorer. I'm following the instructions at: ms-http://support.microsoft.com/default.aspx?kbid=313891.
0
951
by: Bernhard Hess | last post by:
I use following C# code behind an aspx file to send a *.pdf file to the Internet Explorer. The variable "buffer" is of type byte and is filled with the contents of a *.pdf file. this.Response.ClearHeaders(); this.Response.Clear(); this.Response.ContentType = "application/pdf"; this.Response.BinaryWrite(buffer); this.Response.End();
5
3416
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok afterwards. I did no development for a couple of weeks, came back and I kept receiving Access Denied to Microsoft.Net\Temporary Internet Files\... Access is Denied. ASPNET had full access to that file and all subfolders. The website I am...
9
7720
by: Etayki | last post by:
Hi! I am new to VB.net and I am using the Visual Basic 2005 Express Edition I have two questions: 1. I am trying to write an application that will automate Internet Explorer and store data in a database. Am I better off learning VB.net or C#.net? Is there a free development environment for C# as well?
4
2511
by: nagar | last post by:
I'm trying to launch a webservice in Debug from visual studio .net 2003. When I do that I get an error: "Cannot start debugging on the webserver". This happens on old and new projects, both using Visual Studio 2003 and 2005. I think that ASP.NET is correctly configured as the application works correctly if I launch it directly form internet explorer. Thanks.
2
1343
by: cacd1971 | last post by:
Hi, I use following C# code behind an aspx file to send a *.pdf file to the Internet Explorer. The variable "buffer" is of type byte and is filled with the contents of a *.pdf file. this.Response.ClearHeaders(); this.Response.Clear(); this.Response.ContentType = "application/pdf";
5
3365
by: jd | last post by:
Hi, I have an application that uses embedded IE windows, which doesn't work if the user has set their IE security settings to high. Is there any way to programmatically obtain the security settings for Internet Explorer for the current user? I had a brief look through the registry but by comparing the exported .reg files before and after making changes to the IE settings, I was not able to locate them specifically. Any help at all...
0
8170
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8619
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8334
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8474
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6108
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.