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.
4 6474
Use System.Diagnost ics.Process("ie xplore.exe");
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,
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>) .
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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
|
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.
|
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();
|
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...
| |
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?
|
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.
|
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";
|
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...
|
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,...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| | |