Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
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 
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 
I've tried both. But it just doesn't work.
If I get it right when the program gets to the line
this.countDown.Start();

the 'countDown_Tick' must be executed. In my case it does not. For some
reason the program just 'remarks' the line and executes it after all the rest of the code is passed. I will illustrate the way it goes when I run it in the Debug mode.

//Step 1. The program enters the 'if' body
if(useTimeLimit)
{
      this.pnlTimer.Enabled = true;
      this.lblTimeLeft.Visible = true;
      timeCounter = TimeLimit; //value = 10
                                         
      this.countDownTimer.Start(); // Step 2. Here it just enters the line 
and then goes further without going to 'countDown_Tick'
} // if (useTimeLimit)

//Step 3. It goes through the rest of code in the method
else
{
     some other code
}

some other code;

some other code;


//Step 4. After it goes through all the code in the method (Step 3)
the program executes the 'countDown_Tick'

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


I know this is stupid, but imagine how stupid I feel in such a situation! Please help!
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 
AnswerRe: code for creating toolbox Pin
Christian Graus12-Feb-07 18:46
protectorChristian Graus12-Feb-07 18:46 
Questionplz help me in registering new user on Mail server Pin
EEmaan12-Feb-07 18:20
EEmaan12-Feb-07 18:20 
GeneralRe: plz help me in registering new user on Mail server Pin
Guffa12-Feb-07 19:33
Guffa12-Feb-07 19:33 
QuestionVisualization for Media Player Pin
student_rhr12-Feb-07 17:08
student_rhr12-Feb-07 17:08 
QuestionDisable TextBox cursor Pin
bankai12312-Feb-07 14:58
bankai12312-Feb-07 14:58 

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.