Click here to Skip to main content
15,907,910 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reordering DOCKED controls Pin
Judah Gabriel Himango2-Aug-05 10:33
sponsorJudah Gabriel Himango2-Aug-05 10:33 
GeneralRe: Reordering DOCKED controls Pin
Radgar2-Aug-05 13:11
Radgar2-Aug-05 13:11 
GeneralRe: Reordering DOCKED controls Pin
Judah Gabriel Himango2-Aug-05 16:19
sponsorJudah Gabriel Himango2-Aug-05 16:19 
GeneralRe: Reordering DOCKED controls Pin
Radgar2-Aug-05 16:27
Radgar2-Aug-05 16:27 
GeneralObject serialization Pin
Luis Alonso Ramos2-Aug-05 6:40
Luis Alonso Ramos2-Aug-05 6:40 
GeneralRe: Object serialization Pin
Alomgir Miah2-Aug-05 7:49
Alomgir Miah2-Aug-05 7:49 
GeneralRe: Object serialization Pin
Luis Alonso Ramos2-Aug-05 7:58
Luis Alonso Ramos2-Aug-05 7:58 
GeneralTiming Error when using System.Timers.Timer Pin
LiamD2-Aug-05 6:39
LiamD2-Aug-05 6:39 
I have the following code in WinForm which kick off a periodic timed event every 10 millisecs. The event updates a count every 100 event calls. I expect the display to be updated every 10ms * 100 = 1 sec.

The actual value displayed in the label after 60 seconds is 3600. i.e. 60 event elapses every second.

By changing tmrTimersTimer.Interval it has no effect on the count i.e. it is still 3600.

What am I doing wrong?

        private void evtLoad(object sender, System.EventArgs e)<br />
        {<br />
            tmrTimersTimer = new System.Timers.Timer(10.0);<br />
            tmrTimersTimer.Elapsed += new <br />
                ElapsedEventHandler(tmrTimersTimer_Elapsed);<br />
            tmrTimersTimer.SynchronizingObject = this; //Synchronize with the current form...<br />
            tmrTimersTimer.AutoReset = true;<br />
            tmrTimersTimer.Enabled = true;<br />
<br />
            tmrTimersTimer.Start();        <br />
        }<br />
<br />
        private void tmrTimersTimer_Elapsed(object sender, <br />
            System.Timers.ElapsedEventArgs e) <br />
        {<br />
            if (++Count % 100 == 0)<br />
            {<br />
                lblCount.Text = Count.ToString();<br />
            }<br />
        }

GeneralRe: Timing Error when using System.Timers.Timer Pin
S. Senthil Kumar2-Aug-05 6:51
S. Senthil Kumar2-Aug-05 6:51 
GeneralRe: Timing Error when using System.Timers.Timer Pin
LiamD2-Aug-05 21:16
LiamD2-Aug-05 21:16 
GeneralRe: Timing Error when using System.Timers.Timer Pin
S. Senthil Kumar2-Aug-05 22:50
S. Senthil Kumar2-Aug-05 22:50 
GeneralQuestion about class communication Pin
nc3b2-Aug-05 5:58
nc3b2-Aug-05 5:58 
GeneralRe: Question about class communication Pin
S. Senthil Kumar2-Aug-05 7:05
S. Senthil Kumar2-Aug-05 7:05 
GeneralRe: Question about class communication Pin
nc3b2-Aug-05 7:54
nc3b2-Aug-05 7:54 
GeneraliTunes and Podcasting Pin
Al_Pennyworth2-Aug-05 5:17
Al_Pennyworth2-Aug-05 5:17 
GeneralRe: iTunes and Podcasting Pin
Anonymous2-Aug-05 6:33
Anonymous2-Aug-05 6:33 
GeneralRe: iTunes and Podcasting Pin
Anonymous3-Aug-05 5:00
Anonymous3-Aug-05 5:00 
GeneralRemainder in / operation Pin
zaboboa2-Aug-05 5:11
zaboboa2-Aug-05 5:11 
GeneralRe: Remainder in / operation Pin
Guffa2-Aug-05 5:41
Guffa2-Aug-05 5:41 
GeneralAppend Text to Notepad programatically Pin
Alomgir Miah2-Aug-05 3:53
Alomgir Miah2-Aug-05 3:53 
GeneralSorting an array Pin
livez2-Aug-05 3:22
livez2-Aug-05 3:22 
GeneralRe: Sorting an array Pin
J4amieC2-Aug-05 3:42
J4amieC2-Aug-05 3:42 
GeneralRe: Sorting an array Pin
Mohamad Al Husseiny2-Aug-05 3:44
Mohamad Al Husseiny2-Aug-05 3:44 
GeneralRe: Sorting an array Pin
livez2-Aug-05 3:49
livez2-Aug-05 3:49 
GeneralRe: Sorting an array Pin
Alomgir Miah2-Aug-05 3:59
Alomgir Miah2-Aug-05 3:59 

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.