c# - Is there a dynamic-creation-friendly LinkLabel Alternative? -
i'm trying dynamically create link windows form our website when conditions met (it's warning message further information in our online manual).
currently i'm finding linklabel quite unwieldy use in situation: having set linkclicked handlers on fly straightforward hyperlink seems inelegant.
is there wrapper or alternative fulfills following requirements?:
- inherits system.windows.forms.control (so can use in tablelayoutpanel)
- has reasonably low setup (no strange linkclicked function pre-visit checking, example)
- isn't bound specific browser
what problem linkclicked
event handler? have same control in order useful.
anyway, trivial implement - create class inherits linklabel, add string url
property (you may need attribute make show in designer properties panel if want set way) , provide event handler opens browser url.
then can add control in designer (or @ runtime), set url property , work without having set event handlers.
Comments
Post a Comment