Click here to Skip to main content
16,008,183 members
Home / Discussions / C#
   

C#

 
GeneralExecuting SSis package from C# Pin
tasumisra24-Feb-08 19:18
tasumisra24-Feb-08 19:18 
Questionindeterminate progress bar Pin
veerbala24-Feb-08 18:57
veerbala24-Feb-08 18:57 
GeneralRe: indeterminate progress bar Pin
Christian Graus24-Feb-08 19:08
protectorChristian Graus24-Feb-08 19:08 
QuestionUnique random numbers Pin
D i x y24-Feb-08 18:55
D i x y24-Feb-08 18:55 
GeneralRe: Unique random numbers Pin
Christian Graus24-Feb-08 19:07
protectorChristian Graus24-Feb-08 19:07 
GeneralRe: Unique random numbers Pin
D i x y24-Feb-08 19:52
D i x y24-Feb-08 19:52 
GeneralRe: Unique random numbers Pin
Christian Graus24-Feb-08 20:16
protectorChristian Graus24-Feb-08 20:16 
GeneralHold the timer tick event before processing Pin
CodingLover24-Feb-08 18:26
CodingLover24-Feb-08 18:26 
Hi all,

I used the Timer class to make a tick event in specific interval, in my C# .Net service. My attempt as follows.

private System.Timers.Timer TimerTicker = null;
public RfService()
{
    InitializeComponent();

    const double INTERVAL = 10000;

    TimerTicker = new System.Timers.Timer( INTERVAL );
    TimerTicker.Elapsed += new ElapsedEventHandler( this.ServiceTimer_Tick );
}


Here, ServiceTimer_Tick() do my processing part.

My question is this. Immediately after starting my service start to count the tick on each 10 seconds and do the processing. That's fine, and work it well.

But, I want to hold the tick for 2 minutes immediately after starting the service and then do the 10 seconds interval process. That mean only the first time I want to hold the tick for 2 minutes.

I think it is clear for you. How can I do this. I'm really new for C#. Specially on threading, because I found that using threading I can do that.... Smile | :)

Thanks Smile | :)

I appreciate your help all the time...
Eranga Smile | :)

GeneralRe: Hold the timer tick event before processing Pin
Christian Graus24-Feb-08 18:29
protectorChristian Graus24-Feb-08 18:29 
GeneralRe: Hold the timer tick event before processing Pin
CodingLover24-Feb-08 18:46
CodingLover24-Feb-08 18:46 
GeneralRe: Hold the timer tick event before processing Pin
Christian Graus24-Feb-08 19:04
protectorChristian Graus24-Feb-08 19:04 
GeneralRe: Hold the timer tick event before processing Pin
CodingLover24-Feb-08 19:11
CodingLover24-Feb-08 19:11 
Generalwindows TO vista!! Pin
rowdy_vc++24-Feb-08 18:01
rowdy_vc++24-Feb-08 18:01 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 18:12
protectorChristian Graus24-Feb-08 18:12 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 18:41
rowdy_vc++24-Feb-08 18:41 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 18:43
protectorChristian Graus24-Feb-08 18:43 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 19:12
rowdy_vc++24-Feb-08 19:12 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 20:00
rowdy_vc++24-Feb-08 20:00 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 20:53
protectorChristian Graus24-Feb-08 20:53 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 21:01
rowdy_vc++24-Feb-08 21:01 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 21:24
protectorChristian Graus24-Feb-08 21:24 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 21:56
rowdy_vc++24-Feb-08 21:56 
GeneralRe: windows TO vista!! Pin
Colin Angus Mackay24-Feb-08 22:53
Colin Angus Mackay24-Feb-08 22:53 
GeneralRe: windows TO vista!! Pin
Colin Angus Mackay24-Feb-08 22:50
Colin Angus Mackay24-Feb-08 22:50 
QuestionHi friends.. please help me waiting or loading pages problem Pin
G Nathan24-Feb-08 17:50
G Nathan24-Feb-08 17:50 

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.