All Questions
Tagged with eventhandler events
100
questions
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
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", "...
-1
votes
2
answers
133
views
How to fix a Function for Button click event executes on page load [closed]
In my MERN app I am trying to take a screenshot of a portion of the webpage to send it to the database with other info that is submitted such as submitter and description. The problem is, the image is ...
0
votes
0
answers
175
views
Assigning event handler with arguments to events using arrow functions
In the below snippet,during a click event, the arrow function gets called. Now, this arrow function in turn runs the code in its body. Now since callme() is a single line statement, so it should ...
0
votes
1
answer
63
views
Mocking Event handling will not cover delegate function assigned
Trying to mock an EventHandler for an Event raised from another class. However, when I run the test, the test does not cover the code that implemented inside the handler.
Test
[Fact]
public void ...
1
vote
2
answers
335
views
WinForms - PerfromClick() doesn't work when the button is not visible
I created a form menu that is created dynamically and shows/hides the child items after clicking on the parent items. I have a code that checks the keyboard keys on the BaseMenuForm. When a shortcut ...
1
vote
1
answer
477
views
In Unity, Events in C# fire but suscriber methods don't?
I'm having difficulties to connect my events fired to a suscriber method in another class. Here is the whole setup :
First, I got this class which act as the publisher class :
public class ...
0
votes
1
answer
153
views
check event argument in event handler c#
I want to keep track of the argument passed in argument in event subscription, so that I can after select/narrow down my invokes.
public List<Tags> _toSpecificTagSubscribed = new List<Tags>...
3
votes
1
answer
1k
views
Check if a method is already registered to an event
I am trying to properly check if an object's event has already been set to a specific method.
That stackoverflow question offers 2 solutions :
a quick and dirty one which simply unregisters the ...
0
votes
1
answer
265
views
How isn't propertyChanged null although we don't initialize it?
On Xamarin.Forms I implement INotifyPropertyChanged and it works fine.
There is something I don't understand though:
PropertyChanged is a an event, which means it is a delegate.
Before we invoke event/...
3
votes
1
answer
663
views
Javafx one eventhandler to catch them all?
I am playing around with javafx and am trying to add an EventHandler or EventFilter (not totally sure what the difference is right now) to one of my scenes. It should just detect any input, from mouse ...
0
votes
1
answer
596
views
Triggering event of C++ dll in unreal engine
I am trying to use dll which reads incoming messages with a thread.Importing into unreal engine with Blueprint class, As I can't get the incoming messages. I am planning to have a event in the dll for ...
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 ...
0
votes
1
answer
755
views
How to create an empty EventHandler in C#? [closed]
I want to create an EventHandler without any methods attached to it. It's important to do it on the runtime rather than on compile time. Later on I can add the methods then invoke the event.
...
0
votes
3
answers
744
views
add OnClick event on a div
I'm trying to add an event of a button that is in a div.
HTML :
<template id="modele-panier" type="text/AhuntsicModele">
<div class="dialog-item">
<table>
<tr>
...