by Tony [email protected] (8 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 15th June 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
emails someone, open webpage or opens file from command button
' emails someone
ShellExecute hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, conSwNormal
'open webpage
ShellExecute hwnd, "open", "http://sparalwww.google.com", vbNullString, vbNullString, conSwNormal
'Open file
ShellExecute hwnd, "open", "file://c:\file.txt", vbNullString, vbNullString, conSwNormal