How can I navigate the IExplorer....

G

Guest

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
 
C

Cor Ligthert

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top