In object-oriented programming languages (such as C++, Lazarus Pascal or Visual Basic), visual objects (or components) can respond to *events* (usually) by the user. An event handler is the block of code that runs when an event occurs. Eg: *Onclick* event for a command button.
Questions tagged [eventhandler]
800 questions
-3
votes
2 answers
how to stop async method execution in c#?
I am using an asynchronous method. How can I stop its execution when a Timer raises a timeout event?
My code:
public async Task

Gokul Kumar
- 389
- 6
- 16
-3
votes
1 answer
I need help for translate C# to Vb (with EventHandlers)
i have my code :
client.NotifyClientEnterView += (source, notification) => Console.WriteLine("ClientEnterView {0}: {1}", notification.Clid, notification.ClientNickname);
And i want to translate it in VB.NET
(it's not working with a translator when…

Simon Et la famille
- 59
- 6
-4
votes
2 answers
Unregistering the event handler from a null control
I am trying to unregister the event handler at the end of my program. It looks like this -
myobject.EventHandler -= new MyEventHandler(MyMethod);
Now, I noticed that under certain conditions this statement gets executed multiple times. The program…

Fox
- 9,384
- 13
- 42
- 63
-5
votes
1 answer
Let the EventHandler wait for a function
I have got the following problem.
I have two ObservableCollections coll1, coll2. When adding to the first ObservableCollection coll1 I add in the coll1_CollectionChanged some manipulated data into the coll2 - this fires up the…

N.Zukowski
- 600
- 1
- 12
- 31