are there any ways to make linkLabel (.net 4.0) working as simple hyperlink on right mouse click – i mean to open a menu with “open in new tab”, “open in new window” and so on.
if not, is there any way to develop custom control that will act like this?
actually i just need to be able to encapsulate simple hyperlink in some kind of control.
On mouse down event for your link label, when you identify that its right mouse button, Open up a context menu and show up the options you wish to show.
If you plan to use this at multiple places in your application, then create a derived type from link label and add this event handler to it
Thanks to Hans Passant: you can also use ContextMenu(or ContextMenuStrip property not sure which one) if menu options are never going to change for different instances of LinkLabel.