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
-2 votes
1 answer
217 views

Is the following code in c# cause memory leak issue?

I was wondering if the following code create a memory leak: using System; namespace ConsoleApplicationTest { internal class Program { static void Main(string[] args) { ...
David Lefaivre's user avatar
1 vote
1 answer
37 views

How do I use Declarative Services to ensure that EventAdmin is not null?

Im new to OSGi and I tried to create a simple EventPublisher/-Admin application using DS to ensure that the EventAdmin is not null. But I'm not sure how to use the DS in the right way. The Activator ...
Jona's user avatar
  • 13
1 vote
0 answers
23 views

what is the best jsript event handler to use when data is change through other script for select? [duplicate]

I am trying to make, the value for the value media and unit media, change when the object is select, yes the object do change when I change upon the available item to select, but my target is to ...
Muhammad Faiz Abdullah's user avatar
1 vote
1 answer
265 views

Visual Studio 2022 (C++) "Add Event Handler..." generating bad names

I am working on an MFC application with a Ribbon Bar and am experiencing difficulty adding event handlers for new controls from the Ribbon Designer. This was working fine the last time I edited the ...
Dave2501's user avatar
-1 votes
2 answers
465 views

React event handler is not working at all [duplicate]

import React from 'react'; import './Button.css'; import iconsdown from './iconsdown.png' ; import iconsnext from './iconsnext.png'; function Button() { const handleEvent=(e) =>{ console....
rakib .h's user avatar
1 vote
0 answers
112 views

DataGrid Event Handler has an error that prevents the live view from being updated

I am having an interesting issue. I am using Visual Studio 2022. In my XAML code, I have a DataGrid with EventSetter. The Handler is alerting on "Invalid value for property 'Handler'. This error ...
Vlad Petra's user avatar
-1 votes
2 answers
2k views

Updating multiple input fields onchange in react

I really hope that you guys can help me with this. Basically, I am creating an invoice form where users can add multiple items. I have 4 fields for those items: ItemName, ItemPrice (unit price), ...
OJ STUDIO LIVE's user avatar
2 votes
1 answer
277 views

NullReferenceException thrown but the object passed the null check, how is that possible?

I'm using the AddEventHandler method from that answer, but when doing it on an EventHandler with a value type argument that happens: using System.Reflection; public class Program { public static ...
KBar's user avatar
  • 92
1 vote
0 answers
192 views

Emit was called after an event handler completed normally [Flutter]

Exception is thrown on second call 'emit' inside 'firstEvent' case. I know why, but I dont know how to make it work. Problem exists when I use event.map. _AssertionError emit was called after an event ...
Piotr Temp's user avatar
2 votes
1 answer
265 views

Serialising an HTML element that has event handlers

I am currently making a website for a class that I am in. It is supposed to be a store, made in Pure HTML, CSS, and JavaScript (no libraries including jQuery). I am currently attempting at making a ...
highjeans 's user avatar
0 votes
2 answers
442 views

How to make circles around Marker be created and removed when Marker is clicked on the react-leaflet

I think this problem is to use Popup or eventHandler. But when i used Popup, The circle is created but not removed. And I have no idea how to make a circle using eventHandlers. This First Code is use ...
kimjaku's user avatar
  • 11
0 votes
1 answer
248 views

How do you change the value to an acceptable value after a NumberBox's ValueChanged event is triggered using WinUI3?

I have a list of Images with corresponding NumberBoxes in a GridView. This is the XAML: <DataTemplate x:Key="CardListView_ItemTemplate" x:DataType="local:CardItem"> ...
John Glen's user avatar
  • 883
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 ...
user1068557's user avatar
-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 ...
Steve's user avatar
  • 45
1 vote
1 answer
137 views

eventHandler trigger multiple times when using .on() only

function changeStatus() { $('#dataTable tbody').on('change', '.orderStatus', function () {..code} } function showOrdersInModal() { $('#dataTable tbody').on('click', '.fa-eye-btn', function (e) ...
Shinxx's user avatar
  • 47

15 30 50 per page
1 2
3
4 5
55