By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,699 Members | 1,453 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,699 IT Pros & Developers. It's quick & easy.

How can I navigate the IExplorer....

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Nov 21 '05 #2

P: n/a
"Husam" <Hu***@discussions.microsoft.com> 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/>
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.