471,310 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Get IE frames properties

Hi,

I'm able to get the url of the document but how do I get the url of one of
it's frame.

It thought it would be something like this but it doesn't work...
lblOstUrl.Text = ieForAutomation.frames(0).name

Consider this code that populates a label with the url of a document (on a
click event). What can I do to get the url of one of it's frame.

'##############
Protected WithEvents ieForAutomation As SHDocVw.InternetExplorer

Private Sub HDT_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim c_strOstUrl As String = "www.microsoft.com"

If ieForAutomation Is Nothing Then
ieForAutomation = New SHDocVw.InternetExplorer
End If

ieForAutomation.Visible = True
ieForAutomation.Navigate(c_strOstUrl)
End Sub

Private Sub lnkOstUrl_LinkClicked(ByVal sender As System.Object, ByVal e
As System.Windows.Forms.LinkLabelLinkClickedEventArgs ) Handles
lnkOstUrl.LinkClicked

lblOstUrl.Text = ieForAutomation.LocationURL.ToString

End Sub
'##############

Any help would be really appreciated. Thx
Francois
Jul 21 '05 #1
0 841

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by LagWagon | last post: by
14 posts views Thread by x | last post: by
2 posts views Thread by kyle | last post: by
reply views Thread by Dan Nigro | last post: by
8 posts views Thread by UJ | last post: by
6 posts views Thread by August Karlstrom | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.