fiogf49gjkf0d A LinkEdit, is just that, an "Edit" control with a "link" sort of action. The fact that it is an "Edit" implies the user can edit the value. With a LinkEdit the user can enter the web address and later click it to go to that address.
If you want to display an "alias" for a link, then you really can't allow the user to edit it as well. KWIM?
What I would use instead if just a label. You can change it's properties to look just like a hyperlink. Make it blue, underlined, change it's cursor, etc. Display your "alias" in the caption, then on it's OnClick event use
Application.BasicFunctions.WebOpen "http://www.slxdeveloper.com/"
You could also store the real URL in the label's "Hint" property. Then you'd just do this:
Sub LabelOnClick(Sender) Application.BasicFunctions.WebOpen Sender.Hint End Sub
That way, you could have multiple labels, all with the same click handler. You just put the alias in the caption, and the URL in the hint (you could also set ShowHint=False if you didn't want the URL to show when hovering, but I think the URL showing in the hint would be better) |