Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Launch internet explorer

 

 'Launch internet explorer .

'1 command button on a form


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 Command1_Click()
On Error Resume Next
Call ShellExecute(0&, vbNullString, "H:\Program Files\Internet Explorer\IEXPLORE.EXE", vbNullString, vbNullString, vbNormalFocus)
End Sub


Notes:

You will have to change the path for Internet Explorer

.

1 command button on a form


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 Command1_Click()
On Error Resume Next
Call ShellExecute(0&, vbNullString, "H:\Program Files\Internet Explorer\IEXPLORE.EXE", vbNullString, vbNullString, vbNormalFocus)
End Sub


Notes:

You will have to change the path for Internet Explorer

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Display month name(VBScript)
open default browser with a url(VB)
Display all drives(VB)
Block more than one IP address(ASP)
Slashdot feed(PHP)
start windows calculator(Powershell)
A daily MySQL row displayed(PHP)
Open internet explorer and display a webpage(Powershell)

    




Copyright © 2003 by programmershelp.co.uk