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

C#

 
AnswerRe: Re-painting graphics Pin
Guffa1-Nov-06 6:41
Guffa1-Nov-06 6:41 
Questiondyanamically adding labels to panel Pin
Ram Kiran1-Nov-06 5:23
Ram Kiran1-Nov-06 5:23 
AnswerRe: dyanamically adding labels to panel Pin
sam#1-Nov-06 6:42
sam#1-Nov-06 6:42 
GeneralRe: dyanamically adding labels to panel Pin
Ram Kiran1-Nov-06 21:34
Ram Kiran1-Nov-06 21:34 
QuestionHow can I wait for a given seconds without blocking. Pin
Nadia Monalisa1-Nov-06 5:13
Nadia Monalisa1-Nov-06 5:13 
AnswerRe: How can I wait for a given seconds without blocking. Pin
led mike1-Nov-06 5:18
led mike1-Nov-06 5:18 
GeneralRe: How can I wait for a given seconds without blocking. Pin
Nadia Monalisa1-Nov-06 7:17
Nadia Monalisa1-Nov-06 7:17 
AnswerRe: How can I wait for a given seconds without blocking. Pin
mav.northwind1-Nov-06 6:48
mav.northwind1-Nov-06 6:48 
Hi!
If I understand you correctly, you want a certain action to be performed at a certain time, right?
You could do this by creating the timer and setting its Interval property to the time difference between now (DateTime.Now) and the time you want the action to be performed.
That way you just have to put your action in the timer's Tick event handler and you're done.
Btw. don't forget to stop the timer in the tick event handler, otherwise you could get the action performed more than once.

Regards,
mav

--
Black holes are the places where God divided by 0...

GeneralRe: How can I wait for a given seconds without blocking. Pin
Nadia Monalisa1-Nov-06 7:13
Nadia Monalisa1-Nov-06 7:13 
GeneralRe: How can I wait for a given seconds without blocking. Pin
mav.northwind1-Nov-06 18:51
mav.northwind1-Nov-06 18:51 
GeneralRe: How can I wait for a given seconds without blocking. Pin
[Marc]2-Nov-06 1:25
[Marc]2-Nov-06 1:25 
GeneralRe: How can I wait for a given seconds without blocking. Pin
Nadia Monalisa2-Nov-06 5:55
Nadia Monalisa2-Nov-06 5:55 
GeneralRe: How can I wait for a given seconds without blocking. Pin
[Marc]2-Nov-06 11:28
[Marc]2-Nov-06 11:28 
GeneralRe: How can I wait for a given seconds without blocking. Pin
Nadia Monalisa2-Nov-06 11:59
Nadia Monalisa2-Nov-06 11:59 
GeneralRe: How can I wait for a given seconds without blocking. Pin
[Marc]2-Nov-06 12:17
[Marc]2-Nov-06 12:17 
QuestionAccessing data from a class in main form(program) Pin
dkoco1-Nov-06 4:04
dkoco1-Nov-06 4:04 
AnswerRe: Accessing data from a class in main form(program) Pin
dkoco1-Nov-06 4:50
dkoco1-Nov-06 4:50 
Questionchange size of textbox at runtime Pin
Ajay R Ojha1-Nov-06 3:24
Ajay R Ojha1-Nov-06 3:24 
AnswerRe: change size of textbox at runtime Pin
Colin Angus Mackay1-Nov-06 4:22
Colin Angus Mackay1-Nov-06 4:22 
GeneralRe: change size of textbox at runtime Pin
Ajay R Ojha1-Nov-06 17:31
Ajay R Ojha1-Nov-06 17:31 
AnswerRe: change size of textbox at runtime Pin
Rahithi3-Nov-06 7:37
Rahithi3-Nov-06 7:37 
QuestionForcing single processor mode Pin
Bekjong1-Nov-06 3:02
Bekjong1-Nov-06 3:02 
AnswerRe: Forcing single processor mode Pin
Dan Neely1-Nov-06 3:18
Dan Neely1-Nov-06 3:18 
GeneralRe: Forcing single processor mode Pin
Bekjong1-Nov-06 3:26
Bekjong1-Nov-06 3:26 
GeneralRe: Forcing single processor mode Pin
mav.northwind1-Nov-06 4:11
mav.northwind1-Nov-06 4:11 

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.