Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
EXECUTE YOUR DEFAULT WEB BROWSER....
Author:
Md.Mafuzul Islam Mafuz
E-mail:
Click to e-mail author
Website:
http://www.mafuz.com
Submitted:
1/13/2003
Version:
VB6
Compatibility:
VB6
Category:
Windows API
Views:
12974
EXECUTE YOUR DEFAULT WEB BROWSER.
Declarations:
'""""""""""""""""""""""""""""""""" 'EXECUTE YOUR DEFAULT WEB BROWSER' 'MD.MAFUZUL ISLAM MAFUZ ' 'WEB:www.mafuz.com ' 'E-mail:sleeplessmafuz@yahoo.com' 'BANGLADESH ' '""""""""""""""""""""""""""""""""" 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 Const SW_SHOWNORMAL = 1
Code:
'//SHELLEXECUTE:The ShellExecute 'function opens or prints a specified file. 'The file can be an executable file or a 'document file. '//SW_SHOWNORMAL = 1:Activates and displays a 'window. If the window is minimized or 'maximized, Windows restores it to its 'original size and position. An application 'should specify this flag when displaying the 'window for the first time. Public Sub Label1_Click() '//ShellExecute( 'hwnd>> handle to parent window 'lpOperation>> pointer to string that specifies operation to perform 'lpFile>> pointer to filename or folder name string 'lpParameters>> pointer to string that specifies executable-file parameters 'lpDirectory>> pointer to string that specifies default directory ' nShowCmd>>whether file is shown when opened ') ShellExecute hwnd, vbNullString, "www.mafuz.com" _ , vbNullString, vbNullString, SW_SHOWNORMAL End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2023 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement