wilbert
12-31-2002, 03:51 AM
Just a simple question.
How can you make a hyperlink in Visual Basic?
Wilbert
How can you make a hyperlink in Visual Basic?
Wilbert
hyperlinkwilbert 12-31-2002, 03:51 AM Just a simple question. How can you make a hyperlink in Visual Basic? Wilbert Flyguy 12-31-2002, 04:34 AM You have to program that yourself, or search the code library for the hyperlink control. John 12-31-2002, 06:54 AM Have a look at the ShellExecute. Something like this will do the trick: 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 = 2 Private Sub lblHyperlink_Click() 'Launch the default web browser and navigate to the site ShellExecute Me.hwnd, "open", "http://www.visualbasicforum.com", ByVal 0&, _ "", SW_SHOWNORMAL End Sub A simple search of the forum pulls up a few examples as well. Orbity wilbert 12-31-2002, 11:45 AM thanks |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum