Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [eventhandler]

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.

eventhandler
305 questions with no upvoted or accepted answers
6 votes
0 answers
425 views

C# SystemEvents.PowerModeChanged fires too late

I want to catch the PowerModeChanged event before the computer or notebook is suspended. My code snippet is the following: void SystemEvents_OnPowerChanged(object sender, PowerModeChangedEventArgs e)...
Ismoh's user avatar
  • 1,094
4 votes
0 answers
1k views

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: https://learn.microsoft.com/en-us/dotnet/...
Programmable Physics's user avatar
4 votes
0 answers
61 views

Subscribing Methods to Events from another Class in C#

Hello swarm intelligence! Imagine the following: We've created a rudimentary server / client software to send Events through a local network to invoke Methods in another Program. This is done via ...
de0x95's user avatar
  • 61
3 votes
1 answer
3k views

MapBox GL: Issue with "Map.Off"

Within my Javascript Mapbox GL application, I'm having difficulty getting Map.off to work and therfore difficulty turning off event handlers. I have several instances of objects (circles) created on ...
CapturedCode's user avatar
3 votes
1 answer
4k views

EventHandler ASP.NET CORE

I have a project in ASP.NET CORE. I want to call a method (in the future several methods) before my RejectExchange method from ExchangeService class is finished. So I read about EventHandlers to do it,...
Paweł's user avatar
  • 31
3 votes
0 answers
763 views

onclick works but addEventListener doesn't?

Ok so I was creating a practice project that I saw on another website I am used to addEventListeners as the default event handling function, however, in the code below; the quiz app I am creating go ...
Ahmed Magdy's user avatar
3 votes
0 answers
173 views

SSIS, read the subcomponent parameter in the event handler after fireinformation

I'm looking for a way to read in the event handler tab, the SubComponent parameter that is sent as you call the method FireIformation or FireWarning or FireError. On the MSDN website, they say this ...
M.Ba's user avatar
  • 31
3 votes
1 answer
411 views

How does SSIS know which variable in an OnVariableValueChanged Event?

OK, I understand all the whys and wherefores of how to create variables in ssis and that the raise_change_event must be set for the event handler to work. And, I have a SQL task written to insert a ...
Forak Ting's user avatar
3 votes
1 answer
172 views

Jquery mouse onclick inside angularjs

I am working with a page where both JQuery and AngularJS are used. Using jQuery taggable-text.js plugin I am able to select "Share-with" items by mouse click and keyboard. But when I try to select ...
Sahak Kaghyan's user avatar
3 votes
0 answers
3k views

How to detect the loading end of a vector source in ol3?

In OpenLayers 3, I want to detect when the features of a vector source are finished to be loaded inside a vector layer. Here's a snippet of the code I defined: var vector = new ol.layer.Vector({ ...
Alexandre Dubé's user avatar
2 votes
0 answers
357 views

How can i register an Event Handler for a custom AplicationEvent in C# .net win Form?

I have a method to handle my Custom event. I am trying to register this method as the event handler for my event. The method that handles the event needs to be inside a form because it needs to ...
SimpForJS's user avatar
2 votes
0 answers
835 views

Redis StackExchange ConnectionMultiplexer connection event fire twice

I am using Redis StackExchange ConnectionMultiplexer to establish a connection with the server. I want to log the connection activity changes when the connection is disconnected/restored. But somehow ...
JackyLoo's user avatar
  • 319
2 votes
1 answer
245 views

.net 4.7.1 C# OCX event handler works on win10x 86/64, does not work on win7/8 x86/64

The Backstory - Our company has a C# Click Once app that uses a .ocx file to register an event handler. The event handler's function is arbitrary, but in this case the event handler is performing a ...
Max's user avatar
  • 21
2 votes
0 answers
434 views

Xamarin.Forms : EventHandler can not fire when using ManualResetEvent.WaitOne only in iOS (works fine in Android)

I'm working on a single App with Xamarin.Forms, Visual Studio. I'm using a ManualResetEvent in my code to wait for an event to fire. No problem with Android, but in iOs, myManualResetEvent.WaitOne(...
Philippe Bourque's user avatar
2 votes
1 answer
597 views

KeyDown event in C# for system keys

I'm trying to capture any KeyDown event regardless of what item has the focus. I have the following code in my constructor: Window.Current.CoreWindow.KeyDown += CoreWindow_KeyDown; And my function ...
Misty Glotfelter's user avatar

15 30 50 per page
1
2 3 4 5
21