Results 1 to 6 of 6

Thread: One click refreshed all opened IE browsers

  1. #1

    Thread Starter
    Lively Member Julie_Luvs's Avatar
    Join Date
    Apr 2004
    Location
    Paradise
    Posts
    83

    Question One click refreshed all opened IE browsers

    Hi everyone,
    Its me Julie again

    Im trying to make a program that allows me to click one button to refresh all IE browsers that are opened.

    hmm.. .
    let me try to explain it a little better, if i can. :P

    if i have 20 IE browsers open, after one click of a button, all the browsers will refresh it self.

    Quick Note: All the IE browers will have the same title.
    -------------------------------------------------------
    eg.

    Google - Microsoft Internet Explorer
    -------------------------------------------------------

    How im i to come about this?
    Last edited by Julie_Luvs; Apr 7th, 2004 at 05:31 AM.
    Julie Luvs


  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Set a reference to Microsoft Internet Controls
    VB Code:
    1. Private Sub Command1_Click()
    2. Dim ies As SHDocVw.ShellWindows
    3. Dim ie  As SHDocVw.InternetExplorer
    4.  
    5.     Set ies = New SHDocVw.ShellWindows
    6.    
    7.     For Each ie In ies
    8.         ie.Refresh
    9.     Next
    10.  
    11.     Set ies = Nothing
    12.  
    13. End Sub
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Lively Member Julie_Luvs's Avatar
    Join Date
    Apr 2004
    Location
    Paradise
    Posts
    83
    Hi, thank you for the quick reply, but i tryed the code above, but i got an error as stated below

    Compile error:

    User-defined type not defined

    im guess its becasue i dont know how to "Set a reference to Microsoft Internet Controls"

    does this mean add the componets "rosoft Internet Controls"?
    if so, i already did that. if i may ask, could you walk me thru this procress, please?
    Julie Luvs


  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Above the Components menu (Project->Components), there is a References menu, which brings up your reference list. References are a bit different than components.

    You must add the reference to Microsoft Internet Controls, not the component, in order for that code to work. Although having both should cause no problems.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Lively Member Julie_Luvs's Avatar
    Join Date
    Apr 2004
    Location
    Paradise
    Posts
    83
    a new road block

    how do i get it to click the "retry" button?
    Attached Images Attached Images  
    Julie Luvs


  6. #6

    Thread Starter
    Lively Member Julie_Luvs's Avatar
    Join Date
    Apr 2004
    Location
    Paradise
    Posts
    83
    anyone?
    Julie Luvs


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