How to check assignment of Event Handler
Hi All,
I have following line in my C# code :
bkmkRow
.Selected+=new
WordTools.SelectionEventHandler(this
.STTable_Row_BookmarkSelected);where bkmkRow is the Bookmark object of Word class (in VSTO).
Now before assignment of "SelectionEventHandler" to "Selected" event, how can I check that any event handler has been assigned or not?
Any help?
Thanks in advance.......
Oh sorry to say, but I tried that thing also and it throws an error "Selected must be left side of +=".
So I can not check it with NULL. 
Joey,
You might well be right. But either way I come at this problem, I don't think there is a clean solution. It is kind of an interesting problem though, if you think you have a solution that would be cool.
My main goal here, however, was just to try to close out a thread that looked like it would never get a good answer. That's always a dangerous proposition, but I thought it might be worth a try in this case.
- Charlie