VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



EXECUTE YOUR DEFAULT WEB BROWSER

by Md.Mafuzul Islam Mafuz (7 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 1st April 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

EXECUTE YOUR DEFAULT WEB BROWSER

API Declarations



Private Const SW_SHOWNORMAL = 1


Rate EXECUTE YOUR DEFAULT WEB BROWSER



'EXECUTE YOUR DEFAULT WEB BROWSER'
'MD.MAFUZUL ISLAM MAFUZ          '
'WEB:www.mafuz.com               '
'E-mail:[email protected]'
'BANGLADESH                      '



'//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







Download this snippet    Add to My Saved Code

EXECUTE YOUR DEFAULT WEB BROWSER Comments

No comments have been posted about EXECUTE YOUR DEFAULT WEB BROWSER. Why not be the first to post a comment about EXECUTE YOUR DEFAULT WEB BROWSER.

Post your comment

Subject:
Message:
0/1000 characters