Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to make a transparent Pin
Christian Graus24-Sep-06 19:38
protectorChristian Graus24-Sep-06 19:38 
QuestionIs there anything in C# timer sort of thing! Pin
Mirunab24-Sep-06 18:55
Mirunab24-Sep-06 18:55 
AnswerRe: Is there anything in C# timer sort of thing! Pin
Guffa24-Sep-06 19:09
Guffa24-Sep-06 19:09 
GeneralRe: Is there anything in C# timer sort of thing! Pin
Mirunab24-Sep-06 21:30
Mirunab24-Sep-06 21:30 
AnswerRe: Is there anything in C# timer sort of thing! Pin
Guffa24-Sep-06 21:47
Guffa24-Sep-06 21:47 
GeneralRe: Is there anything in C# timer sort of thing! Pin
Mirunab24-Sep-06 22:55
Mirunab24-Sep-06 22:55 
GeneralRe: Is there anything in C# timer sort of thing! Pin
Dilllu25-Sep-06 0:03
Dilllu25-Sep-06 0:03 
GeneralRe: Is there anything in C# timer sort of thing! Pin
Rob Philpott25-Sep-06 1:32
Rob Philpott25-Sep-06 1:32 
I'm not sure you want to do that!

That is going to be one very busy thread, continually updating the time when it doesn't need to. At the very least you could add a Thread.Sleep(1000) in there to rest the thread for a second between updates, although why you'd do this rather than use a timer escapes me.

Not to mention that you should *never* update the GUI from anything apart from the thread which created it (and in VS2005 it will explicitly block you from doing so). You'd need a call to BeginInvoke to make this solution acceptable.


Regards,
Rob Philpott.

QuestionIn Multi threaded Application, OpenFileDialog-> My Computer tree not showing Drives available Pin
kumar.bs24-Sep-06 18:53
kumar.bs24-Sep-06 18:53 
AnswerRe: In Multi threaded Application, OpenFileDialog-> My Computer tree not showing Drives available Pin
S. Senthil Kumar24-Sep-06 20:10
S. Senthil Kumar24-Sep-06 20:10 
GeneralRe: In Multi threaded Application, OpenFileDialog-> My Computer tree not showing Drives available Pin
kumar.bs25-Sep-06 0:24
kumar.bs25-Sep-06 0:24 
QuestionHow to make Collection classes serializable Pin
King Shez24-Sep-06 18:50
King Shez24-Sep-06 18:50 
AnswerRe: How to make Collection classes serializable Pin
Nader Elshehabi24-Sep-06 23:42
Nader Elshehabi24-Sep-06 23:42 
Questioneditor Pin
sarojkumarjena24-Sep-06 17:55
sarojkumarjena24-Sep-06 17:55 
AnswerRe: editor Pin
Christian Graus24-Sep-06 19:40
protectorChristian Graus24-Sep-06 19:40 
Questionerror generating the XML document Pin
lagumaster24-Sep-06 17:37
lagumaster24-Sep-06 17:37 
AnswerRe: error generating the XML document Pin
S. Senthil Kumar24-Sep-06 20:12
S. Senthil Kumar24-Sep-06 20:12 
Questionsql server connection via ip address Pin
keroed_edmond24-Sep-06 16:02
keroed_edmond24-Sep-06 16:02 
AnswerRe: sql server connection via ip address Pin
Judah Gabriel Himango24-Sep-06 16:14
sponsorJudah Gabriel Himango24-Sep-06 16:14 
QuestionPublic Key Encrytpion with Web Services Pin
Guinness4Strength24-Sep-06 13:16
Guinness4Strength24-Sep-06 13:16 
AnswerRe: Public Key Encrytpion with Web Services Pin
Ed.Poore24-Sep-06 13:32
Ed.Poore24-Sep-06 13:32 
JokeRe: Public Key Encrytpion with Web Services Pin
Nader Elshehabi24-Sep-06 15:35
Nader Elshehabi24-Sep-06 15:35 
QuestionPorting this to event-based? Pin
Lord Kixdemp24-Sep-06 12:31
Lord Kixdemp24-Sep-06 12:31 
AnswerRe: Porting this to event-based? Pin
Nader Elshehabi24-Sep-06 12:44
Nader Elshehabi24-Sep-06 12:44 
GeneralRe: Porting this to event-based? Pin
Lord Kixdemp24-Sep-06 14:27
Lord Kixdemp24-Sep-06 14: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.