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
0 votes
0 answers
9 views

Pressing button in the main window to execute an even in user control

First, I would like to mention that I am a beginner with C#/WPF and trying to do my best to learn it. I have a main window with multiple navigation buttons on its left side to navigate between user ...
0 votes
1 answer
103 views

How to Handle Incoming Messages in TelegramBotClient in C#?

I'm trying to develop my first Telegram bot using C# in Visual Studio. I've been following tutorials, and everything seems to be going smoothly. However, when I try to handle incoming messages using ...
-1 votes
0 answers
63 views

jQuery: onclick event works only the first time

Trying to add two event handlers on two elements respectively. The second element will only appear in DOM after users clicks the first element. My problem is the first event handler only work for one ...
-1 votes
1 answer
54 views

Calling Function from Click Event in Leaflet

I am hoping there are some Leaflet experts here who can explain what I'm missing in the code below. I am only a hobbyist programmer so I apologize if my terminology doesn't make complete sense. I was ...
1 vote
3 answers
2k views

event and event listener laravel 11

I can't add constructor in my event listener.Laravel 11 there is no EventService provider also. I need an example for this public function handle(NewUserEvent $event): void { Mail::send('...
4 votes
3 answers
10k views

Async await and event handler

Is it permitted to convert a usual event handler from void to Task based, and await it like below? Something.PropertyChanged += async (o, args) => await IsButtonVisible_PropertyChanged(o, args); ...
0 votes
1 answer
38 views

C# Event Handler Issue Updating Control

So, here is the layout: frmClient = uses frmLogin (LoginWindow) which has OnLoginEvent this event is received by frmClient, and will update the statusbar (doesn't have invoke) frmClient also uses ...
0 votes
0 answers
29 views

SQL Server Job execution after the job stopped

I started one a job from the ‘Job Activity Monitor’, I stopped the job after few minutes once I realized that this is not the job I should be running. The next day, the stopped job triggered by the ...
1 vote
2 answers
54 views

in python code, Is this a proper place to use dependency injection -- if so, how

The code setup is as follows: Module ui_theme.py defines a theme and variant selector. variant_selector has an on_change event handler. Module cards_page.py imports ui_theme.py and has a handler ...
2 votes
1 answer
379 views

Add different sounds to different buttons

I am working through a project using Javascript and jQuery. The projects requires me to add sounds to buttons. A different sound should play depending on the button I click. I know how to add a single ...
2 votes
1 answer
270 views

How to remove wrapped/custom event handler added from an instance of a class VB.NET

I need to create multiple instance of zkemkeeper.CZKEM to create active (250+) connections to multiple biometrics devices with events at a time. I created a class to do my desired output: Public ...
0 votes
0 answers
47 views

C# EventHandler invoke in class A, action to run in class B

I have implemented an eventhandler that should be invoked when "OpenProject" is completed. The event is listened from another class. What I see testing the code is that the "work inside&...
0 votes
0 answers
16 views

Facing issues with dropdown button in Flask

I am building a basic search page in Flask. When the page loads, I enter the search bar and get the results. Then when I click on the drop-down, I can only select 1st option, "Organization" &...
0 votes
1 answer
49 views

How to loop over an array and create a unique event handler for each item

In my application, I have a list of apps, apps = [ App("app1", "username1", "password1", "----"), App("app2", "username2", "...
3 votes
2 answers
1k views

How to pass EventHandler as parameter in Blazor

Trying to pass an EventHandler to a Blazor component. Error I'm getting: The event AppState.IntegerChanged can only appear on the left hand side of += Seems like this should work, is it a blazor ...

15 30 50 per page
1
2 3 4 5
55