LinkLabel and Context Menu
-
Hi! Is there any simple method to detect which Link on linkLabel has been clicked before context menu opening? I've got linkLabel with context menu set to some contextMenu. When I click LMB, the linkLabel1_LinkClicked event fires ok. But RMB does not fire this - just contextMenu appears, without any info about current link. Any ideas? h.
-
Hi! Is there any simple method to detect which Link on linkLabel has been clicked before context menu opening? I've got linkLabel with context menu set to some contextMenu. When I click LMB, the linkLabel1_LinkClicked event fires ok. But RMB does not fire this - just contextMenu appears, without any info about current link. Any ideas? h.
if you set the ContextMenu property back to null you should be able to handle the RMB event as you want, then use the ContextMenu's Show method to show the correct context menu. James "My words but a whisper -- your deafness a SHOUT. I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
-
if you set the ContextMenu property back to null you should be able to handle the RMB event as you want, then use the ContextMenu's Show method to show the correct context menu. James "My words but a whisper -- your deafness a SHOUT. I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972