Click here to Skip to main content
15,907,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi programmers, i'm in creating advanced video player
i want when mouse is idle(not moving) fullscreen parent mode change to fullscreen only video mode
its my code for this

C#
<pre lang="C#">if //mouse is idle i want to this event happen
 {
Player1.FullScreenMode = FullScreenMode.Display;
}
if //mouse is not idle(moving) i want this event happen
 Player1.FullScreenMode = FullScreenMode.Parent;</pre>

thanks for your help


What I have tried:

i trying to detect if mouse is idle or not to change fullscreen mode to display pause, stop..etc buttons
Posted
Updated 5-Apr-21 21:10pm

Because all programming under Windows environment is event-oriented you can consider all devices as idle as long as no event is fired for that device. You can track mouse events by simply set/reset a global flag on entering/exiting it's event procedures.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900