Quote:
quote:Originally posted by Jael
I may have figured out why this is happening. But I would like a guru (or at least someone who knows more than me about C#) to verify my findings.
It would appear that if I use the design editor to add an event "ItemActivate" the subscription to that event is placed in the "#region Windows Form Designer generated code" section of the code automatically. Since I had done it this way, I should have left the event subscription out of the constructor.
In any case, once I removed one or the other of the subscriptions, the code works perfectly.
Can someone validate this for me? Am I wrong in my hypothesis and conclusion?
Jael
|
Hi Yor solution may correct !
But I am not using DesigerGenerated Code but I do write EventHandler Syntax manually (in
vb like AddHandler ItemActivated , Addressof .... so on)
but Same thing happens with me , means ActivateEvent Executed twice ??
Why ?
Emersion