How to hijack an event handler?

In event driven programming,how do you create an event handler?

  • How do you create an event handler for events that are not keystroke or mouse click or a scan? Which programming language is better to handle this? If i were to develop in C++/C# , how do I start?

  • Answer:

    An event is a function with a predefined trigger, like a mouse click or text field modification. Without the trigger, it is just a regular function that your program would call depending on whatever criteria you as the programmer specify. if I write a function that counts 2 numbers called count, then I would use it as x = count(1, 2). If I then bound this function to a button it would be an event function that would occur when the button is pressed, but its the exact same thing, and this is true in any language that you work in.

clueless at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.