Click here to Skip to main content
11,490,007 members (59,690 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows
hi,
i have written one windows application in c#,but i want to make it pop up for every one hour, i have used thred.span() but its taking more cpu usage.
please tell me is there any easy method to do it..

Thanks,
Shreekanth b
Posted 5-Jan-13 1:33am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You should use Thread.Sleep()[^]. You should also indicate what programming language you are using.
  Permalink  
Comments
ProgramFOX at 5-Jan-13 8:06am
   
You should also indicate what programming language you are using.
The OP wrote this in his question:
i have written one windows application in c#
So, he indicated which programming language he's using.
Richard MacCutchan at 5-Jan-13 8:31am
   
His tag just says "Windows".
shreekanth OT at 7-Jan-13 6:47am
   
hi Rechards,
Thanks for your replay, but i am running this application every day 8 hours,
Thread always running, so its taking more cpu usage.do have any idea about timer trick.
Richard MacCutchan at 7-Jan-13 12:29pm
   
Did you try reading the documentation in my suggested link?

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 600
1 Andy Lanng 233
2 OriginalGriff 208
3 Maciej Los 160
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,608
1 OriginalGriff 8,475
2 Sascha Lefèvre 3,419
3 Maciej Los 3,106
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 5 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100