Results 1 to 2 of 2

Thread: Shellexecute with ie8 -> not working

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    61

    Shellexecute with ie8 -> not working

    Hi all.

    I have been using this line for years:

    ShellExecute Me.hWnd, "Open", ThisUrl, "", "", 1

    ThisUrl could be "http://www.google.com" for example.

    It worked no problem for years.
    Just tried it today, with IE8...

    IE8 opens, but no URL is shown.
    See attached image.
    Any suggestion would be much appreciated.

    David
    Attached Images Attached Images  

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Shellexecute with ie8 -> not working

    Works fine for me. Have you tried to nagivate to a site that you know is up and running ? The fact that it's displaying "Connecting" may imply that wherever it was navigating to wasn't available
    Code:
    Option Explicit
    
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
                        (ByVal hwnd As Long, _
                         ByVal lpOperation As String, _
                         ByVal lpFile As String, _
                         ByVal lpParameters As String, _
                         ByVal lpDirectory As String, _
                         ByVal nShowCmd As Long) As Long
                         
    Private Const SW_SHOWNORMAL As Long = 1
    
    Private Sub Form_Load()
    Dim lngRet As Long
    lngRet = ShellExecute(Me.hwnd, "Open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL)
    End Sub

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