Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Display/View WebBrowser Address

I have a WebBrowser Xcontrol on a MS Access 2003 Form.  I have a text box where I want to display the web address of the current displayed webpage of this WebBrowser.  Since the webpage has multiple links, I want the text box to display the current webaddress everytime the page changes.  Esentially I want to display the AddressBar.  In the properties I have the "AddressBar" set to YES but it doesn't display the address bar.

Please let me know if you have any questions or need more detail.

Thank you in advance,

Walfe31
0
walfe31
Asked:
walfe31
1 Solution
 
justchat_1Commented:
on the navigate2 event set the textbox to the url property
0
 
hiteshgupta1Commented:
Try either this

Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
Form1.Caption = WebBrowser1.LocationName
End Sub

or this

Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
Form1.Caption = WebBrowser1.LocationURL
End Sub


0
 
hiteshgupta1Commented:
sorry
u want to display it in textbox
so

 text1.text=WebBrowser1.LocationName
or
 text1.text=WebBrowser1.LocationURL
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
kaliyugkaarjunCommented:
Private Sub WebBrowser1_DownloadComplete()
On Error Resume Next
Me.Caption = WebBrowser1.LocationName
Text1.Text = WebBrowser1.LocationURL
End Sub

0
 
justchat_1Commented:
hiteshgupta1 thats the code for what I was talking about...thanks

kaliyugkaarjun - you want to see where the browser is going before the page is fully loaded
0
 
walfe31Author Commented:
This is what I was looking for: text1.text=WebBrowser1.LocationURL

Thanks for you help.
0
 
justchat_1Commented:
in the navigate2 event? cause that would be a point split
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now