Rippin
January 13th, 2000, 03:22 PM
Does anyone know of a way to put a hyperlink in to a Rich Edit Control's text, TreeView node, or ListView ListItem?
|
Click to See Complete Forum and Search --> : Hyperlinks in controls Rippin January 13th, 2000, 03:22 PM Does anyone know of a way to put a hyperlink in to a Rich Edit Control's text, TreeView node, or ListView ListItem? Aaron Young January 14th, 2000, 10:05 AM 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 ajyoung@pressenter.com aarony@redwingsoftware.com codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |