Click here to Skip to main content
15,923,168 members
Home / Discussions / C#
   

C#

 
GeneralRe: a bit of a weird Q about C# and asp web form. Pin
Green Fuze1-Jun-05 2:24
Green Fuze1-Jun-05 2:24 
GeneralRe: a bit of a weird Q about C# and asp web form. Pin
S. Senthil Kumar1-Jun-05 3:06
S. Senthil Kumar1-Jun-05 3:06 
GeneralRe: a bit of a weird Q about C# and asp web form. Pin
Green Fuze1-Jun-05 6:14
Green Fuze1-Jun-05 6:14 
GeneralSQL Oraclce code to SQL2000 convertion Pin
Mohammad Daba'an31-May-05 22:50
Mohammad Daba'an31-May-05 22:50 
GeneralModify a nother Application window properties Pin
nemopeti31-May-05 22:40
nemopeti31-May-05 22:40 
GeneralGet notified at a given time. Pin
Anonymous31-May-05 22:02
Anonymous31-May-05 22:02 
GeneralRe: Get notified at a given time. Pin
Christian Graus31-May-05 22:22
protectorChristian Graus31-May-05 22:22 
GeneralRe: Get notified at a given time. Pin
nemopeti31-May-05 22:57
nemopeti31-May-05 22:57 
Timers are not optimal for this job.
I thing all you need is to know current time System.DateTime.Now
and you can separate teh part of these date eg.: you can catch the current time: System.DateTime.Now.Hour and System.DateTime.Now.Minute

And if you specify an intervall nedd to be do somethig:
- define the intervall eg.:10 minute
- make a timer with a minimal chack intervall eg.:1 minute and start it
- catch current time
- when the timer elepsed just you need
<br />
//your app start time in t varible<br />
//intervall in intv varible<br />
//timer name tim<br />
<br />
private void tim_Elapsed(object sender, System.Timers.ElapsedEventArgs e)<br />
{<br />
//catch current time to curr varible<br />
<br />
    if(curr==t+intv)<br />
    {<br />
     //do what you need<br />
     <br />
     t=curr; //modify t to current time<br />
    }<br />
		<br />
}<br />


This only a little stupid method to do it, but it works, and hope helpful to understand mechanism.
Generalmail accounts Pin
sianatia31-May-05 21:11
sianatia31-May-05 21:11 
Questionsplitting up a string? Pin
livez31-May-05 21:01
livez31-May-05 21:01 
AnswerRe: splitting up a string? Pin
Christian Graus31-May-05 21:19
protectorChristian Graus31-May-05 21:19 
GeneralStored Procedures Pin
NormBohana31-May-05 18:46
NormBohana31-May-05 18:46 
GeneralRe: Stored Procedures Pin
Christian Graus31-May-05 21:22
protectorChristian Graus31-May-05 21:22 
GeneralRe: Stored Procedures Pin
NormBohana1-Jun-05 13:53
NormBohana1-Jun-05 13:53 
GeneralRe: Stored Procedures Pin
Christian Graus1-Jun-05 13:56
protectorChristian Graus1-Jun-05 13:56 
GeneralRe: Stored Procedures Pin
NormBohana2-Jun-05 19:14
NormBohana2-Jun-05 19:14 
GeneralRe: Stored Procedures Pin
Christian Graus5-Jun-05 10:46
protectorChristian Graus5-Jun-05 10:46 
GeneralTracking time of user in AD Pin
shaima'31-May-05 18:46
shaima'31-May-05 18:46 
GeneralHandle string Pin
rockxuyenmandem31-May-05 17:49
rockxuyenmandem31-May-05 17:49 
GeneralRe: Handle string Pin
MoustafaS31-May-05 20:08
MoustafaS31-May-05 20:08 
GeneralRe: Handle string Pin
Carsten Zeumer31-May-05 21:04
Carsten Zeumer31-May-05 21:04 
GeneralActiveX Autocad Pin
Newbie_Toy31-May-05 17:29
Newbie_Toy31-May-05 17:29 
GeneralRe: ActiveX Autocad Pin
Christian Graus31-May-05 17:38
protectorChristian Graus31-May-05 17:38 
GeneralRe: ActiveX Autocad Pin
Newbie_Toy31-May-05 19:11
Newbie_Toy31-May-05 19:11 
GeneralRe: ActiveX Autocad Pin
Christian Graus31-May-05 21:46
protectorChristian Graus31-May-05 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.