LinkLabel label = new LinkLabel();
// imagine there is a code to initialize the label
label.Click += (sender, args) => callback1();
label.LinkClicked += (sender, args) => callback2();
If I click the label anywhere but not its link then callback1()
is called which is correct.
If I click the label's link then both callback1()
and callback2()
are called.
How do I make it call callback2()
only?