[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
VBFAQ_LoadAWEBPage
Back to Visual BAsic FAQ Main Page.

How to load a WEB-page in your browser


This code is used by the Programmers Heaven team to load a WEB-page into my WEB-browser.

Global declarations
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


Sourcecode
Public sub StartBrowser(URL As String)
'Load a WEB page into my browser
'(c) 2001 Programmers Heaven
'http://www.programmersheaven.com
    
    If Trim(URL) <> "" Then
       Call ShellExecute(0&, vbNullString, URL, _
       vbNullString, "C:\", mlngMax Or mlngMin Or mlngNormal)
    End If
End Sub


Call the function by using
      StartBrowser "http://www.programmersheaven.com"


last edited (December 9, 2002) by KDivad Leahcim, Number of views: 2792, Current Rev: 3 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.