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
817
questions
-1
votes
0
answers
61
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 ...
0
votes
0
answers
54
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
1
answer
51
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 ...
0
votes
1
answer
37
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 ...
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('...
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
52
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 ...
0
votes
0
answers
45
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
15
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
47
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", "...
1
vote
2
answers
99
views
Passing C# function in constructor to be used as a subscriber to EventHandler delegate
I've been spending some time learning about Delegates in C# and have wired up a small Windows Form app containing two forms to test them out.
My goal is to have the AddContactForm push new Contact ...
0
votes
1
answer
121
views
How to get data from a static event-handler for serial port
I'm currently write a method that read data consecutively from serial port in C# winform for .NET framework.
I write an event handler for it, but since its static, i cannot call variable from outside.
...
0
votes
0
answers
57
views
user to logout if browser tab/window is closed after getting idle timeout popup on screen without choosing options to extend /end
onidletimeout.subscribe(=> {
if(confirm('your session is expired. Press 'OK' to refresh or 'cancel' to logout')){
this.document.reload();
}
else{
this.msalService.logout();
}});
this is the code ...
0
votes
1
answer
64
views
How to get status by add rows dynamic in javascript
I want ask about rows dynamic in javascript. I should input the value into field result, and then the field status will automation fill pass or fail. But when I added the second rows, I can input the ...
0
votes
0
answers
11
views
MVVM Error Message Handling in Subclasses: Seeking Input
I'm looking for input on a MVVM design-decision. I want to send error messages from my subclasses to my MainWindowViewModel. Is this a good way to go about it or are there simpler or better ways to ...