How can I add a hyper link to a form? I can't find any information on this, but I've seen it done on apps.
Thanks
Printable View
How can I add a hyper link to a form? I can't find any information on this, but I've seen it done on apps.
Thanks
try this:
Code:x = shell("www.vbworld.net", 0)
Two ways of doing this. Use a Shell function:
or use the ShellExecute api function.
dimava, the code you provided will not work because it has nothing to Shell it. The Shell function is for supporting exe's only. Unless you Shell the exe along with a command line parameter, as showed in the first example I gave.Code: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
Public Const SW_SHOWNORMAL = 1
Usage
ShellExecute Me.hwnd, vbNullString, "http://www.vb-world.net", _
vbNullString, "c:\", SW_SHOWNORMAL
one more way to do this is to simply using the
HyperLink component
e-mail : [email protected]