C
C#Curious

✅ Win Form Event Handlers question

Hi, I was just wondering if there is an event handler when the win form is idle that I can then run code in. I am looking to use it as a modeless form alongside the Revit API to sync a 2D drawing and a 3D model view together. I am currently using the Revit API Idle event, however I want to change this method of functionality to be toggled via a button in a win form as it adds unnecessary load to the Revit application. Once alternative method I thought about was running on a mouse move event, or if there is some kind of user input.
S
Sossenbinder398d ago
There's definitely a Win32 API to get the last input time of a user, I'm not sure if there's anything built-in which would notify you of an idle state though I guess you probably need to write your own handler which periodically checks the last input time and executes code once it reaches the threshold you need
C
Curious397d ago
Yeah thought it might just be easier to generate my own, thanks for the second opinion!
A
Accord396d ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Problem with Dictionary<ulong, Image> (Strange work of memory access)Concept of my system: A system that draws a picture with stickers, each of the stickers can be moved❔ How do I refactor this?I am working with a grid of tiles, each tile has an int, which is made up of 4 bytes which represent❔ [AvaloniaUI] Visibility of item in ListView based on conditionAn Avalonia UI application is used to manage an evidence of items. It allows the user to add items. ✅ How to structure this login/signup page layoutSo I have this mockup of the layout I want for a login/signup page in my Blazor WASM app. Pretty sta❔ I am need of help before I give up and run my code on a server instead of a serverless solution.I have create an azure function locally and i've used the selenuim webdriver package for taking scre✅ .Net Core 6 Asymmetric Encryption with custom public and private keysHello all! How can i use the `Asymmetric Encryption` in .Net 6 but choosing/importing private and pu❔ No Design in C#Instances of this bug (1) 1. View Call Stack at System.Runtime.InteropServices.Marshal.ThrowExce❔ having issues on a reloading script on unity to reload weaponsthe code is used in a youtube video and i have pretty much copied to to get it to work but it doesnt❔ help with an exerciseI've encountered a weird problem that idk how to fix. Say we've got a string "31131123521" how do i ❔ Accessing HTTP Context at DbCommandInterceptor [.NET 7]Hi! I'm having some issues trying to access the HTTP Context at my DbCommand Interceptor class. What