Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
QuestionHow to change date time continuously in a Label? Pin
pubududilena2-Aug-05 18:22
pubududilena2-Aug-05 18:22 
AnswerRe: How to change date time continuously in a Label? Pin
Christian Graus2-Aug-05 18:37
protectorChristian Graus2-Aug-05 18:37 
AnswerRe: How to change date time continuously in a Label? Pin
Mohamad Al Husseiny2-Aug-05 19:26
Mohamad Al Husseiny2-Aug-05 19:26 
GeneralRe: How to change date time continuously in a Label? Pin
pubududilena2-Aug-05 22:03
pubududilena2-Aug-05 22:03 
GeneralRe: How to change date time continuously in a Label? Pin
Guffa3-Aug-05 1:48
Guffa3-Aug-05 1:48 
GeneralRe: How to change date time continuously in a Label? Pin
mikker_1233-Aug-05 8:38
mikker_1233-Aug-05 8:38 
AnswerRe: How to change date time continuously in a Label? Pin
Guffa2-Aug-05 22:04
Guffa2-Aug-05 22:04 
AnswerRe: How to change date time continuously in a Label? Pin
MicrosoftBob4-Aug-05 7:31
MicrosoftBob4-Aug-05 7:31 
private System.Threading.Thread timerAvoidanceThread = null;<br />
private void Form1_Load(object sender, System.EventArgs e)<br />
{<br />
  timerAvoidanceThread = new System.Threading.Thread(new System.Threading.ThreadStart(TimerReplacement));<br />
  timerAvoidanceThread.Start();<br />
}<br />
<br />
private System.Threading.AutoResetEvent wellItsNotATimer = new System.Threading.AutoResetEvent(false);<br />
public void TimerReplacement()<br />
{			<br />
  while(true)<br />
  {<br />
    if(wellItsNotATimer.WaitOne(1000, false))<br />
    {<br />
      break;<br />
    }<br />
    <br />
    wtfLabel.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); //should invoke instead<br />
  }<br />
}

GeneralRegarding Authentication Pin
Anand Anbalagan2-Aug-05 18:10
Anand Anbalagan2-Aug-05 18:10 
GeneralRe: Regarding Authentication Pin
Frank Kerrigan2-Aug-05 21:36
Frank Kerrigan2-Aug-05 21:36 
GeneralMobile to Computer communication Pin
Jimi George2-Aug-05 17:42
Jimi George2-Aug-05 17:42 
GeneralAccess...pass a value from one form to another form Pin
vtalau2-Aug-05 16:30
vtalau2-Aug-05 16:30 
GeneralRe: Access...pass a value from one form to another form Pin
Christian Graus2-Aug-05 16:50
protectorChristian Graus2-Aug-05 16:50 
GeneralGetting assembly name Pin
mikker_1232-Aug-05 16:26
mikker_1232-Aug-05 16:26 
GeneralRe: Getting assembly name Pin
[Marc]2-Aug-05 16:31
[Marc]2-Aug-05 16:31 
GeneralRe: Getting assembly name Pin
mikker_1232-Aug-05 17:12
mikker_1232-Aug-05 17:12 
GeneralProper use of Refresh() and Invalidate() Pin
Mutty2-Aug-05 15:59
Mutty2-Aug-05 15:59 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
mikker_1232-Aug-05 16:20
mikker_1232-Aug-05 16:20 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
Mutty3-Aug-05 2:26
Mutty3-Aug-05 2:26 
GeneralRe: Proper use of Refresh() and Invalidate() Pin
mikker_1233-Aug-05 8:34
mikker_1233-Aug-05 8:34 
GeneralDeleting a Whole Row Pin
tatchung2-Aug-05 15:34
tatchung2-Aug-05 15:34 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 15:52
protectorChristian Graus2-Aug-05 15:52 
GeneralRe: Deleting a Whole Row Pin
mikker_1232-Aug-05 16:08
mikker_1232-Aug-05 16:08 
GeneralRe: Deleting a Whole Row Pin
tatchung2-Aug-05 16:19
tatchung2-Aug-05 16:19 
GeneralRe: Deleting a Whole Row Pin
Christian Graus2-Aug-05 16:50
protectorChristian Graus2-Aug-05 16: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.