C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,519 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am creating WinUI3 app i want to handle some events.
how to know whether power key status of pressed or not
I want to avoid the condition to go inside if the power key pressed.
please suggest.
Hello @Sachi, Any update?
Hi Team,
I want to handle the situation in C# where the power button is pressed for a long time
could you please suggest how will i know whether the user has pressed the power key for a long time?