Results 1 to 2 of 2

Thread: Send address to IE5

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Radcliff
    Posts
    2

    Post

    I want to put a help/register web address in the Help menu of my app. But when the user clicks on a item About..., for example, it opens the web browser to show the info. Or if the browser is already open it would open that page. I have seen other apps that use html as help, and I would like to do that.

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Use the ShellExecute API to launch the Default Browser or use one that is already open, ie.
    Code:
    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 Sub mnuWebpage_Click()
        Call ShellExecute(0&, "OPEN", "http://www.vb-world.net", "", "", 1)
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


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