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
4
votes
1 answer
How to pass argument to Event Handler in Xamarin IOS
How to pass string argument to EventHandler?
ViewController(A)
Written Event Handler
public event EventHandler ValueChanged;
void ResponseCompleted(object sender, CommonCode.ResponseEventArgs e){
this.InvokeOnMainThread (delegate {…

kiran
- 4,285
- 7
- 53
- 98
4
votes
1 answer
JavaFX EventHandler pass parameter
Rectangle rect1 = new Rectangle(10, 10, 20, 20);
Rectangle rect2 = new Rectangle(60, 10, 20, 20);
EventHandler event = new EventHandler() {
@Override
public void handle(MouseEvent ae) {
…

gonnavis
- 336
- 1
- 7
- 16
3
votes
2 answers
How to set timer in an event handler?
Am currently building an app and I want the timer to start only when I click a particular button.
So is there anyway to start timer once a button is clicked? (I don't want the timer to start as soon as the page loads)

Balachander Ramachandran
- 106
- 2
- 2
- 9
3
votes
0 answers
How to Solve Event Hander Nullable Warning Problem
button1.Click += new System.EventHandler(button1_Click);
For this code above the VS gives warning of CS8622 for "button1_Click" in the EventHandler:…

Programmable Physics
- 71
- 7
3
votes
1 answer
cfschedule: Fire onError function if url cannot be found
We have ColdFusion tasks defined like this:

diiN__________
- 7,393
- 6
- 42
- 69
3
votes
1 answer
Check if a method is already registered to an event
I am trying to properly check if an object's event has already been set to a specific method.
That stackoverflow question offers 2 solutions :
a quick and dirty one which simply unregisters the method and registers it again.
a more proper one which…

cboittin
- 161
- 9
3
votes
1 answer
Javafx one eventhandler to catch them all?
I am playing around with javafx and am trying to add an EventHandler or EventFilter (not totally sure what the difference is right now) to one of my scenes. It should just detect any input, from mouse clicks to keys pressed.
I was able to write an…

Franz
- 235
- 3
- 14
3
votes
4 answers
How does the way in which a JavaScript event handler is assigned affect its execution?
Please, consider the following code.
Question