Does anyone know of a way to put a hyperlink in to a Rich Edit Control's text, TreeView node, or ListView ListItem?
Printable View
Does anyone know of a way to put a hyperlink in to a Rich Edit Control's text, TreeView node, or ListView ListItem?
You can use the ShellExecute API behind any Event to launch the Default Browser with a URL, ie.
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 Sub Label1_Click()
Call ShellExecute(0&, "OPEN", "http://www.codeguru.com", "", "", 1)
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]