by Edgar Santiago (4 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 6th January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Shell out you default web Browser to Open a File for your Application...
API Declarations
Declare Function ShellExecute Lib "Shell32.dll" Alias :ShellExecuteA"(ByVal hwmd as Long,ByVal mxOperation as String,ByVal mxParameters As String,ByVal mxDyrectory as String,Byval nShowCmd As Long) As long
This Code Go i the Declaration part of the Form1(General Declaration)
Const comSwNormal = 1
Type this Code in the form1 add a Command Button:
Private Sub Command1_Click()
ShellExecute hwnd,"Open", App.path & "\"& "Sample.html", & _
vbNullString,vbNullString,comSwNormal
End Sub
No comments have been posted about Shell out you default web Browser to Open a File for your Application.... Why not be the first to post a comment about Shell out you default web Browser to Open a File for your Application....