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

C#

 
Questionproblem with application configuration and windows startup Pin
Giorgi Dalakishvili29-Jun-07 8:52
mentorGiorgi Dalakishvili29-Jun-07 8:52 
Questionhow to open a MS word file through a label link in the application Pin
Bahaa Hany29-Jun-07 8:51
Bahaa Hany29-Jun-07 8:51 
AnswerRe: how to open a MS word file through a label link in the application Pin
Giorgi Dalakishvili29-Jun-07 8:53
mentorGiorgi Dalakishvili29-Jun-07 8:53 
GeneralRe: how to open a MS word file through a label link in the application Pin
Bahaa Hany29-Jun-07 9:26
Bahaa Hany29-Jun-07 9:26 
GeneralRe: how to open a MS word file through a label link in the application Pin
Giorgi Dalakishvili29-Jun-07 9:39
mentorGiorgi Dalakishvili29-Jun-07 9:39 
Questionencryption in C of RC4 Pin
NalBH29-Jun-07 7:35
NalBH29-Jun-07 7:35 
AnswerRe: encryption in C of RC4 Pin
Guffa29-Jun-07 8:10
Guffa29-Jun-07 8:10 
Questioncode not being executed Pin
Saamir29-Jun-07 4:20
Saamir29-Jun-07 4:20 
Hi guys,
I am having a weird problem and desperately need your help. I am trying to end the while loop with a timer. Here is how I am doing it.

public int status=0

in my function I have the following:
MessageBox.Show(this,"Please click on Ok to continue");
timer1.Enabled=true;
timer1.Start();
while(status!=1)
{
Thread.Sleep(500);
if(status==1)
{
break;
timer1.Enabled=false;
}
}

in my timer tick function I am asking the question whether they want to keep waiting and if they press no then I am changing status=1 and breaking the loop. My timer code doesn't get executed for some reason. I believe while loop blocks the message from the timer_tick, is there a way to allocate resources while in the while loop. Somehow force the message while in the while loop. I hope I am making sense. Please help!!!



sasa

AnswerRe: code not being executed Pin
Luc Pattyn29-Jun-07 4:26
sitebuilderLuc Pattyn29-Jun-07 4:26 
GeneralRe: code not being executed Pin
Saamir29-Jun-07 9:17
Saamir29-Jun-07 9:17 
AnswerRe: code not being executed Pin
Not Active29-Jun-07 4:33
mentorNot Active29-Jun-07 4:33 
AnswerRe: code not being executed Pin
Guffa29-Jun-07 4:43
Guffa29-Jun-07 4:43 
GeneralRe: code not being executed Pin
Saamir29-Jun-07 5:03
Saamir29-Jun-07 5:03 
AnswerRe: code not being executed Pin
Guffa29-Jun-07 6:49
Guffa29-Jun-07 6:49 
GeneralRe: code not being executed Pin
Saamir29-Jun-07 9:16
Saamir29-Jun-07 9:16 
GeneralRe: code not being executed Pin
Luc Pattyn29-Jun-07 10:25
sitebuilderLuc Pattyn29-Jun-07 10:25 
AnswerRe: code not being executed Pin
Guffa29-Jun-07 12:10
Guffa29-Jun-07 12:10 
AnswerRe: code not being executed Pin
leppie29-Jun-07 4:48
leppie29-Jun-07 4:48 
AnswerRe: code not being executed Pin
Guffa29-Jun-07 6:38
Guffa29-Jun-07 6:38 
AnswerRe: code not being executed Pin
Martin#29-Jun-07 8:52
Martin#29-Jun-07 8:52 
GeneralRe: code not being executed Pin
Saamir29-Jun-07 9:12
Saamir29-Jun-07 9:12 
GeneralRe: code not being executed Pin
Martin#29-Jun-07 9:44
Martin#29-Jun-07 9:44 
GeneralRe: code not being executed Pin
Luc Pattyn29-Jun-07 9:14
sitebuilderLuc Pattyn29-Jun-07 9:14 
GeneralRe: code not being executed [modified] Pin
Martin#29-Jun-07 9:40
Martin#29-Jun-07 9:40 
GeneralRe: code not being executed Pin
Luc Pattyn29-Jun-07 10:16
sitebuilderLuc Pattyn29-Jun-07 10:16 

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.