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
818
questions
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 ...
0
votes
1
answer
77
views
How to open the event handler to a link button in a WebForm (VB.net)
I did my first app but I am having hard time to find the event handler to my link button which I have created. I connected my gridview to my SQL file, did validations all I have to do now is to "...
0
votes
1
answer
135
views
can I perform async calls in an EditContext.OnFieldChanged
Inside an EditContext OnFieldChanged event, when I have one specific field change, I need to write the change to the database. This is a Blazor server app and I use Entity Framework.
Is it ok for this ...
0
votes
0
answers
17
views
Event Handler not fired in AngularJS
I have 2 directives in AngularJS app., and I have a button to open a popup modal in a directive, so I fire event when the button clicked to run a function from the other directive.
the issue is the ...
0
votes
1
answer
88
views
SSIS Event Handler sends me message, even when there is no error
I have a SSIS package and set Event Handler (OnError) to send me a message with logs:
"Package: " + @[System::PackageName] + "\n" +"Start Timet: " + (DT_WSTR, 40) @[...
0
votes
1
answer
61
views
Pass event handler to object constructor as an argument
I have a method for executing batch scripts in memory by passing along a list of commands and executing them in a new Process. I use this method for running things like psql and gpg commands and it ...
1
vote
0
answers
360
views
Playwright - How to access Event Listeners stored data using Javascript?
I'm currently writing an e2e test case using Playwright with TypeScript. I want to get the data stored in Chartjs canvas. I found it's stored in the element's event listener handler and tried to ...
0
votes
0
answers
63
views
How to handle events from Usercontrol in separate AppDomain
I have a number of dll assemblies with usercontrols that I load into a Border control in my main window (like old MDI approach).
I wish to now load these assemblies into a separate AppDomain.
I have ...
0
votes
2
answers
63
views
When I submit my form, it refreshes, overriding my preventdefault() method. I can't fix it
I initially had it working, but when I added the dark mode toggle, it began to read the dark mode toggle as a submit event, and would change the colour of the beer bottle and display the enter/Don't ...
1
vote
4
answers
283
views
How can I remove the event listeners from within a javascript class?
I already saw this thread, but I think my case is a bit different.
This is an example class, whose constructor receives an element as parameter, that can be moved dragging it. But it does not stop ...
1
vote
2
answers
674
views
Delphi - Adding onclick to a button created at runtime
I have a procedure that creates a customtitlebar and titlebarpanel at runtime for any form name passed to it. The purpose of this is to handle the creation automatically for a bunch of different ...
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
129
views
JavaFX: Help setting event listeners to set variables and print text? [closed]
I am writing a program that is a "sandwich ordering app". Think subway. Bread choice, meat choice, cheese choice, etc. I'm trying to use each type of element (radio buttons, combobox, slider,...
0
votes
0
answers
206
views
C# - Serializing to XML information as to which function to bind a delegate too
I need to be able to save a delegate with the information of which function it is connected to. Something like this:
In C#:
public class Skill
{
[XmlAttribute("SkillFunction")]
...
0
votes
0
answers
55
views
Macro correctly running in the debugging, but when event is triggered it not running after the first event
I have a macro associated with a workbook to trigger some events when data is entered in column B.
Along with this, there are two other modules related to this to for uploading excel when so many data ...