|
-
Feb 28th, 2005, 09:41 PM
#1
Thread Starter
Hyperactive Member
URL box [SOLVED]
Ok, i have added a webbrowser to my small app and a textbox, is there a way to code it so that if the webpage changes so does the text in the textbox to show the website address?
Last edited by boku; Feb 28th, 2005 at 10:30 PM.
-
Feb 28th, 2005, 09:46 PM
#2
Re: URL box
In the click event that loads new pages:
VB Code:
Private Sub cmdGo_Click()
WebNavigate txtURL.Text
mytextbox.text = textURL.text
End Sub
-
Feb 28th, 2005, 09:48 PM
#3
Thread Starter
Hyperactive Member
Re: URL box
ok say that the home page is google and i do a seach on there...and click a link, i want the textbox to show me the address of that website. so it changes from google.com to whateva.com
-
Feb 28th, 2005, 10:08 PM
#4
Re: URL box
I think it would go in the download complete action, but I don't have that in my web sample app. never even noticed that the url doesn't change.
-
Feb 28th, 2005, 10:14 PM
#5
Thread Starter
Hyperactive Member
Re: URL box
lol, i didnt until i studied it...maybe you can help me on something else then...i have all my history in a combo box, but is there anyway to stop the same address appearing in it twice, and is there anyway to sort it in reverse, so that the first url u visit goes to the bottom of the list?
-
Feb 28th, 2005, 10:23 PM
#6
Re: URL box
You can specify an index for a combobox. Clear it each time, as I think you would have to write the list backwards each time you wanted to add an item. the first time, you woud leave 0 blank, and write the first item to 1. then you would leave 0 blank, and first one to item 1 and the second to item 2. Use the index.
VB Code:
object.additem item, index
Each time you are adding a item, if it already exists, don't add it at the old place, but add it to the bottom of the list.
also, i think you could use the document complete action to write the new url in your textbox.
-
Feb 28th, 2005, 10:33 PM
#7
Thread Starter
Hyperactive Member
-
Feb 28th, 2005, 10:33 PM
#8
Re: URL box [SOLVED]
Glad it worked out for you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|