I have this code
it's basially an event property, or whatever it's called. The problem is that it won't let me fire the event by calling onLinkClicked()... is there any way to declare my event the way I just did above and still be able to fire it? when I try onLinkClicked() I get this error The event 'ControlsEx.ExplorerBarControl.EBLinkItem.onLinkClicked' can only appear on the left hand side of += or -=PHP Code:internal event EBLinkClickedHandler onLinkClicked
{
add
{
this.myLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler (linkLabel_LinkClicked);
}
remove
{
this.myLinkLabel.LinkClicked -= new LinkLabelLinkClickedEventHandler (linkLabel_LinkClicked);
}
}
I can fire it if I dont declare the event as a property, but I kinda want to declare it that way![]()




Reply With Quote