VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Shell out you default web Browser to Open a File for your Application...

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



Rate Shell out you default web Browser to Open a File for your Application...




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



Download this snippet    Add to My Saved Code

Shell out you default web Browser to Open a File for your Application... Comments

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....

Post your comment

Subject:
Message:
0/1000 characters