|
-
November 29th, 1998, 06:59 PM
#1
Foms and hyperlinks
Any one tell me how to attatch a hyperlink to a form
say somthing like.
my web page
Which will link to a web page in explorer or whatever browser there is available.
thanks.
(You never know I might find the solution!?? 1st) 
-
November 29th, 1998, 09:16 PM
#2
Re: Foms and hyperlinks
'DECLARATION:
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
'FOR WEBPAGE:
Private Sub Label12_Click()'or whatever control activates it command button etc.
Dim lRet As Long
Dim sText As String
sText = "http://www.mathouse.com"
lRet = ShellExecute(hwnd, "open", sText, vbNull, vbNull, SW_SHOWNORMAL)
If lRet >= 0 And lRet = 0 And lRet <= 32 Then
MsgBox "Unable to access Web browser !"
End If
End Sub
-
November 30th, 1998, 02:22 PM
#3
Re: Foms and hyperlinks(thanks! Alot!! ) :)
Thanks!!!! for that Code!!
You know it solved my prevous problem too!!
and made alot of other tasks alot easier.
Again
THANKS!!!
again!!
Christopher.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|