CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    Getting default web browser

    Does anyone know how I can determine the default web browser using VB.

    Jim Hewitt
    Software Developer
    Liberty Tax Service
    www.LibertyTax.com

  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Getting default web browser

    Here's how you run the default web browser


    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_SHOW = 5

    private Sub Command1_Click()
    ShellExecute me.hwnd, "open", "about:blank", vbNullString, vbNullString, SW_SHOW
    End Sub





    Just querying the default browser, I don't know how to do it.



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

Featured