815 questions
Score of 6
4 answers
434 views
How to force the Application.Run to wait for all async void handlers?
I have a Windows Forms application and a Form with many async void event handlers. This form can be closed by the user at any moment. After closing the form I want to delete a temporary file, and my ...
Score of 0
1 answer
248 views
How do event callbacks and handlers work in Blazor
I am a Blazor newbie and following a course on Microsoft's site on Blazor Server. I have a child component ConfigurePizzaDialog.razor that defines a modal dialog and a couple of event callbacks to be ...
Score of 0
1 answer
145 views
VB.net to C# event handler not firing off (works in VB.net but not C#)
Hey all I have been trying to figure this out for a few hours now and just can not understand why the same code works in my VB.net program but not when I convert it to C#... The HDRadioDLL is a DLL ...
Score of 3
2 answers
327 views
Is there a way to run code if someone tries exiting the program?
I’m messing with PowerShell scripting and wanted to know if this was possible. I know when you use try / finally the code in the finally block will execute even when Ctrl+C is typed. However, how can ...
Score of -1
2 answers
154 views
C++ build errors with wxWidgets 3.1.2 and Connect method
I'm using Visual studio 2017 on a x86 machine, app is for 32bit.
wxWidgets version 3.1.2;
I have duplicated a project under another folder to serve as base of a new one, and, once removed all that is ...
Score of 1
2 answers
116 views
How to make event handler delegate know which event is calling it
My code boiled down to the actual problem: (out of a larger project for unittests)
// define all needed delegates for all events in myInstance
EventHandler oea = (o, ea) => GenericEventHandler(o, ...
Score of 1
2 answers
59 views
Event in repeater that is not triggered
I have an ASPX page and two user controls. Both of them contain a repeater.
The ASPX page has a user control, and this user control in turn has another user control inside a repeater.
When I click on ...
Score of 0
1 answer
65 views
How to add event to non-static panel?
First of all, I would like to point out that I am quite a beginner in C#.
My code is:
private static void addImageToPanel(imageData[] images, Panel panel)
{
Panel imagePanel;
PictureBox imageImage;
...
Score of 0
1 answer
614 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 ...
Score of -1
1 answer
178 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 ...
Score of 0
1 answer
51 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 ...
Score of 3
5 answers
11047 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('3_Emails....
Score of 0
0 answers
41 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 ...
Score of 1
1 answer
141 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 ...
Score of 0
0 answers
61 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&...