|
-
January 13th, 2000, 04:22 PM
#1
Hyperlinks in controls
Does anyone know of a way to put a hyperlink in to a Rich Edit Control's text, TreeView node, or ListView ListItem?
-
January 14th, 2000, 11:05 AM
#2
Re: Hyperlinks in controls
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]
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
|