I like to have a button in my program that puts the URL I have opened in IE in a textbox.
Printable View
I like to have a button in my program that puts the URL I have opened in IE in a textbox.
This is confusing.
Your thread title asks how you get the url and your thread body indicates you are getting it and putting it in a textbox.
:confused:
What is the question?
I've opened Internet explorer and I am on an URL.
My VB program doesn't know the URL, but needs it for downloading a file.
(actually it is used for creating url's, to download multiple files, like pic001, pic002, pic003)
How can my prog get the URL from IE? (i don't want to copy paste, but push a button)
You can use the SendMessage() API function and send the WM_GETTEXT to the window to retrieve the string.
Ok, thx, I will get into that :)