Skip to main content
0 votes
0 answers
44 views

What programming patterns can be used for storing and recovering default values when modifying class parameters in C#? [closed]

Sorry if this is a super basic question, but imagine you're working on a racing game. Your Car class has a topSpeed parameter with simple logic like if (currentSpeed <= topSpeed) Accelerate(). ...
Adam L.'s user avatar
  • 89
0 votes
0 answers
10 views

Call Custom Function when user clicks on a FormIO Text Field in react

I have a form implemented in formio which has couple of fields (FirstName, LastName). I am trying to do a simple POC to alert the firstName, LastName when user clicks on text field. I have tried it ...
Vipin Singh's user avatar
1 vote
1 answer
43 views

C# DLL with [ComSourceInterfaces] Attribute Not Working in VBA WithEvents

I am trying to use a C# DLL in VBA with events using the [ComSourceInterfaces] attribute, but I am encountering issues. Here's what I have so far: C# Code ITaskRunnerEvents.cs using System; using ...
Adrijano Toys Shop's user avatar
-1 votes
0 answers
59 views

JavaFX - remove node from pane - weird behaviour [closed]

I am working on a complex application that requires removing a line from a pane and then updating the positions of the remaining lines. For illustration, the application looks like this before ...
Ján Яabčan's user avatar
0 votes
1 answer
42 views

Python Tkinter use dataframe resulting from one function def (self,event) in different function within the same class

I have a combobox in one "subscreen" and I am filtering the original dataframe with combo box value but I can't use resulting dataframe to show it in the treeview function or else where. I ...
Monvana's user avatar
-1 votes
1 answer
52 views

Why is oldValue ALWAYS undefined upon entering function onEdit? [closed]

In my script, I want to compare the value that has just been entered into a cell with whatever value was previously in that cell, if any. Per https://developers.google.com/apps-script/guides/triggers/...
Chris Sharp's user avatar
2 votes
0 answers
64 views

How to create Dictionary with generic list

I try to make simple event bus that can contains Dictionary with lists of events by type. But I cannot find a type of this dictionary that would not give out errors. Please help me figure it out. ...
Vlad Panfilov's user avatar
0 votes
1 answer
50 views

VBA Error Handling for Excel Errors/Dialog boxes

I have an Excel workbook that uses an RTD server to bring data in and I need to know when an error has occurred. Usually the workbook stops working when Excel comes up with a dialogue box that says &...
Simon Tonkin's user avatar
0 votes
1 answer
44 views

How would I implement a cooldown for Events or Commands in Discord.Net?

In my MessageRecieved event handler, I have code that processes text that a user sent into a Discord Text Channel for keywords. If certain keywords are in the text, it'll return a GIF link(s) that ...
NotNameless's user avatar
0 votes
0 answers
38 views

WPF main thread not blocked by WaitOne method when Windows.Deactivate event arrives

I have a very strange problem with my WPF application. When an AutoResetEvent.WaitOne() method is called on the main thread, when the window loses focus and the Windows.Deactivate method is called, ...
maximusmp's user avatar
2 votes
1 answer
64 views

Is there an event corresponding to the start of a new process that I can subscribe to without administrative privileges?

The following code starts conhost.exe which, in turn, starts a new instance of pwsh.exe. Process start events are filtered until the pwsh.exe process whose parent is that instance of conhost.exe is ...
alx9r's user avatar
  • 4,174
0 votes
0 answers
9 views

how can I get underlying timeslot clicked on when I click on an event which spans multiple timeslots

I would like to get the underlying timeslot of a click when the click occurs on an event which spans multiple timeslots My reason for wanting the timeslot is to be able to create extra events on top ...
chandi's user avatar
  • 1
0 votes
1 answer
20 views

Vue 3: Prevent Redundant Form Submissions When Resetting State Between Parent and Child Components

Issue: In a Vue 3 application, form submissions are being redundantly triggered. This happens even though @submit.prevent and event.stopPropagation() are used. The issue seems linked to the resetForm ...
smportis's user avatar
1 vote
0 answers
36 views

Why is Unity triggering a mouse click event when I am only pressing a key on the keyboard?

I am following a tutorial, running Unity version 2022.2.21 <DX11> on Win10, and I am trying to add a button to a UI which can be clicked (mouse), to unpause the game. I am doing this by adding a ...
evilmandarine's user avatar
3 votes
2 answers
87 views

Is there an event I can subscribe to from a job that is raised when Stop-Job is invoked on that job?

The following code demonstrates that a long-running (but, in principle, cancellable) .Net method called from a job runs to completion even when the job is stopped: $stopwatch = [System.Diagnostics....
alx9r's user avatar
  • 4,174

15 30 50 per page
1
2 3 4 5
2540