PC Review


Reply
Thread Tools Rate Thread

How can I navigate the IExplorer....

 
 
=?Utf-8?B?SHVzYW0=?=
Guest
Posts: n/a
 
      25th Mar 2005
Hi evreyBody:

I set the text of internet explorer to www.yahoo.com by using sendmessage
function and here what I did:

SendMessage(hWnd, WM_SETTEXT, 0, "http://www.yahoo.com/")

but i found that the Inerenet explorer did not navigate to the url that i
set, some body told me to use shellexcute function:

sFullPathToFile = "http://www.yahoo.com/"
Call ShellExecute(0, "Open", sFullPathToFile, lol, mom, SW_SHOWDEFAULT)

but alos It did not work with me I don't know why, also some body told me to
use the following messages:

SendMessage(hWnd, EM_SETSEL, 0, lol)
SendMessage(hWnd, WM_PASTE, 0, "http://www.yahoo.com/")

where the first message get the text and the second one replace it by
www.yahoo.com,
also this one did not work with me,

so any one can told me how can I let the internet explorer start naviget to
the url that I set?

Any help will be appreciated

regard's

Husam
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      25th Mar 2005
Husam,

It is not needed to tell what others told, is this what you want to achieve?

///Open default browser and go to Yahoo
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.FileName = "http://www.yahoo.com"
p.StartInfo = pi
p.Start()
///
This can be written much shorter however now you see the most used classes
for this in one time.

I hope this helps,

Cor


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      25th Mar 2005
"Husam" <(E-Mail Removed)> schrieb:
>[Nothing new]


Please don't repost the same question every day...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
for some reason webbrowser1.Navigate() works but causes thread to terminate, i want to do a GetElementyByID in the same thread that executes the navigate.. i am totaly stumped: http://rafb.net/p/LO2X6X82.html DR Microsoft C# .NET 2 15th Nov 2007 11:15 AM
for some reason webbrowser1.Navigate() works but causes thread to terminate, i want to do a GetElementyByID in the same thread that executes the navigate.. i am totaly stumped: http://rafb.net/p/LO2X6X82.html DR Microsoft Dot NET Framework Forms 0 15th Nov 2007 08:17 AM
for some reason webbrowser1.Navigate() works but causes thread to terminate, i want to do a GetElementyByID in the same thread that executes the navigate.. i am totaly stumped: http://rafb.net/p/LO2X6X82.html DR Microsoft Dot NET 0 15th Nov 2007 08:16 AM
Navigate The IExplorer In same window... =?Utf-8?B?SHVzYW0=?= Microsoft VB .NET 0 5th Apr 2005 12:39 PM
'IExplorer Script Error' when attempting to print from IExplorer Navin R. Johnson Windows XP Help 2 15th May 2004 07:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:04 AM.