Results 1 to 2 of 2

Thread: Current Site in Internet Explorer

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    Stockholm, Sweden
    Posts
    44

    Current Site in Internet Explorer

    Hi,
    I'm working on an applikation which would check the current website in Internet Explorer in realtime.
    are there anyway to do that?

    If Yes, How?


    /John
    ********************
    VB 6
    VB 7 (.NET)
    DarkBasic (Beginner)
    ********************

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    if you want all instances of IE ( or one if thats all you have open ) , i just quickly knocked this together for you...
    VB Code:
    1. Dim typeShell As Type = Type.GetTypeFromProgID("Shell.Application")
    2.         Dim objShell As Object = Activator.CreateInstance(typeShell)
    3.         Dim o As Object = typeShell.InvokeMember("Windows", Reflection.BindingFlags.InvokeMethod, Nothing, objShell, Nothing)
    4.         Dim obIe As Object
    5.         For Each obIe In o
    6.             Dim sUrl As String = obIe.GetType.InvokeMember("LocationUrl", Reflection.BindingFlags.GetProperty, Nothing, obIe, Nothing)
    7.             MessageBox.Show(sUrl)
    8.         Next
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width