Source Code Database
Name
Description
Have you seen those hyperlinks in programs which open a page in the default browser automatically. Heres how.
Language
Basic
Java
Source Code
Add the following code to a module: ----------------------Cut Here---------------------- Public 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 ----------------------Cut Here---------------------- Add the following code to the Click event of any control you like ----------------------Cut Here---------------------- Dim iret As Long ' open URL into the default internet browser iret = ShellExecute(Me.hwnd, vbNullString, "http://cvsoftware.home.ml.org/", vbNullString, "c:\", SW_SHOWNORMAL) ----------------------Cut Here----------------------
Submitted By
E-Mail
Back