CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2001
    Posts
    9

    Opening a web page through a VB Application

    I want to open a web page in Internet Explorer through the click of a command button of my VB Application.


  2. #2
    Join Date
    Sep 2001
    Location
    mh,india
    Posts
    45

    Re: Opening a web page through a VB Application

    you can use the shell execute api.I am sending u the code also..hope its the one u want

    General Declaration of API:

    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As Long, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long


    Usage:::
    command1.click = ShellExecute(0, 0, Trim$(strApplicationPath), , 0, SW_SHOWNORMAL)

    where strApplicationPath is a string which will contain the file address to be opened.

    Cheers:
    Siddhs



    S/W Developer
    India.

  3. #3
    Join Date
    Aug 2001
    Location
    maharashtra,india
    Posts
    24

    Re: Opening a web page through a VB Application

    dear siddharth for me ur code is not working help i have emailed u also from [email protected]

    isit my site at http://in.members.tripodasia.com/karthik_immortal

  4. #4
    Join Date
    Sep 2001
    Location
    mh,india
    Posts
    45

    Re: Opening a web page through a VB Application

    what is happening.....what is exactly happening when u run the code i passed you?????

    S/W Developer
    India.

  5. #5
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Opening a web page through a VB Application

    Try reading this
    http://www.codeguru.com/cgi-bin/bbs/...b&Number=61620

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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