Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends
i try to write some files on the machine when the pc is idle
i tried Application.Idle but it always call the method i have been created
i tried Task Idle and the same

Thanks alot
Posted
Comments
Sinisa Hajnal 2-Feb-15 3:06am    
And you have to describe your problem in more details, show the code in question and in general write better question (this one is totally unclear). Thank you.
BillWoodruff 2-Feb-15 5:38am    
This is a WinForms app ? or ... WPF ? or ????

1 solution

You can use the Application.Idle event for that:
https://msdn.microsoft.com/en-us/library/system.windows.forms.application.idle%28v=vs.110%29.aspx[^]

There is really not much else to use. If the system would be too busy your application won't be called that often and certainly isn't idle because the system would switch to another process instead of signal idle.

Good luck!
 
Share this answer
 
v3

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