Click here to Skip to main content
15,914,162 members
Home / Discussions / C#
   

C#

 
AnswerRe: dragging line Pin
Christian Graus12-Feb-07 19:26
protectorChristian Graus12-Feb-07 19:26 
GeneralRe: dragging line Pin
HexaDeveloper12-Feb-07 19:34
HexaDeveloper12-Feb-07 19:34 
GeneralRe: dragging line Pin
Christian Graus12-Feb-07 19:43
protectorChristian Graus12-Feb-07 19:43 
GeneralRe: dragging line Pin
HexaDeveloper12-Feb-07 20:04
HexaDeveloper12-Feb-07 20:04 
GeneralRe: dragging line Pin
Christian Graus12-Feb-07 20:42
protectorChristian Graus12-Feb-07 20:42 
GeneralRe: dragging line Pin
HexaDeveloper12-Feb-07 21:09
HexaDeveloper12-Feb-07 21:09 
GeneralRe: dragging line Pin
Christian Graus12-Feb-07 21:25
protectorChristian Graus12-Feb-07 21:25 
QuestionNeed help with the Timer Control! Please! Pin
vitaco12-Feb-07 19:18
vitaco12-Feb-07 19:18 
In my application I need to use a timer. Depending on it the text of a Label control must be changed and when the time counter reaches the value of '0' an event must happen.
Now so far I wasn't even able to change the value of Label Text property.
I can't figure out what is wrong. Samples I tried from books and MSDN worked just fine, but not the timer in my application. All I get is an infinite 'while' loop. This is the code I used:
this.countDownTimer.Enabled = true;                     
while(this.timeCounter > 0)
{
  this.countDownTimer.Tick += new EventHandler(this.countDownTimer_Tick);                                                 
}
this.countDownTimer.Enabled = false;

private void countDownTimer_Tick(object sender, EventArgs e)
{
   this.timeCounter--;
   this.lblTimeLeft.Text = timeCounter.ToString();
} 


Would someone be so kind to help me with this. I have wasted a full day trying to make it work but no luck so far. Thank you!
AnswerRe: Need help with the Timer Control! Please! Pin
Christian Graus12-Feb-07 19:24
protectorChristian Graus12-Feb-07 19:24 
QuestionRe: Need help with the Timer Control! Please! Pin
vitaco12-Feb-07 19:50
vitaco12-Feb-07 19:50 
AnswerRe: Need help with the Timer Control! Please! Pin
Shajeel12-Feb-07 20:23
Shajeel12-Feb-07 20:23 
AnswerRe: Need help with the Timer Control! Please! Pin
Christian Graus12-Feb-07 20:57
protectorChristian Graus12-Feb-07 20:57 
QuestionRe: Need help with the Timer Control! Please! Pin
vitaco12-Feb-07 21:25
vitaco12-Feb-07 21:25 
AnswerRe: Need help with the Timer Control! Please! Pin
Shajeel12-Feb-07 21:44
Shajeel12-Feb-07 21:44 
AnswerRe: Need help with the Timer Control! Please! Pin
Shajeel12-Feb-07 22:28
Shajeel12-Feb-07 22:28 
GeneralRe: Need help with the Timer Control! Please! Pin
vitaco12-Feb-07 23:12
vitaco12-Feb-07 23:12 
AnswerRe: Need help with the Timer Control! Please! Pin
Christian Graus12-Feb-07 22:09
protectorChristian Graus12-Feb-07 22:09 
GeneralRe: Need help with the Timer Control! Please! Pin
S. Senthil Kumar13-Feb-07 4:34
S. Senthil Kumar13-Feb-07 4:34 
QuestionActiveX control in C#.Net Pin
free_soul42412-Feb-07 18:53
free_soul42412-Feb-07 18:53 
AnswerRe: ActiveX control in C#.Net Pin
Christian Graus12-Feb-07 19:24
protectorChristian Graus12-Feb-07 19:24 
GeneralRe: ActiveX control in C#.Net Pin
free_soul42412-Feb-07 20:21
free_soul42412-Feb-07 20:21 
GeneralRe: ActiveX control in C#.Net Pin
Christian Graus12-Feb-07 21:20
protectorChristian Graus12-Feb-07 21:20 
GeneralRe: ActiveX control in C#.Net Pin
free_soul42412-Feb-07 21:38
free_soul42412-Feb-07 21:38 
GeneralRe: ActiveX control in C#.Net Pin
Christian Graus12-Feb-07 23:01
protectorChristian Graus12-Feb-07 23:01 
Questioncode for creating toolbox Pin
moid.ahmed12-Feb-07 18:27
moid.ahmed12-Feb-07 18:27 

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.