title: How to know which link from one and the same linklabel was right clicked in the context menu?
body: <p>I have a <code>LinkLabel</code> to which a context menu strip is attached. This context menu has 2 options: 'Copy hyperlink' or 'Open hyperlink'. There is no problem when there is only one link in the link label. But I can't figure out how you can (if you can) know which link out of the <code>Links</code> property in the link label is right clicked. This is what I have that works for a single link:</p>
  
  <pre><code>private void contextMenuStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
  {
      ContextMenuStrip item = sender as ContextMenuStrip;
      LinkLabel tempLink = item.SourceControl as LinkLabel;
      if (e.ClickedItem.Text == "&amp;Open Hyperlink")
      {
          System.Diagnostics.Process.Start(tempLink.Links[0].LinkData.ToString());
      }
      else
      {
          System.Windows.Forms.Clipboard.SetText(tempLink.Links[0].LinkData.ToString());
      }
  }
  </code></pre>
  
  <p>Some help on how to know which of the <code>Links</code> is clicked would be welcome.</p>