Click here to Skip to main content
15,920,508 members
Home / Discussions / C#
   

C#

 
QuestionCan you change the system volume? (as in sound) Pin
Anthony Mushrow13-Oct-05 12:49
professionalAnthony Mushrow13-Oct-05 12:49 
QuestionC# Threading Pin
budidharma13-Oct-05 12:05
budidharma13-Oct-05 12:05 
AnswerRe: C# Threading Pin
budidharma13-Oct-05 12:08
budidharma13-Oct-05 12:08 
GeneralRe: C# Threading Pin
Heks13-Oct-05 12:14
Heks13-Oct-05 12:14 
GeneralRe: C# Threading Pin
budidharma13-Oct-05 13:22
budidharma13-Oct-05 13:22 
GeneralRe: C# Threading Pin
Guffa13-Oct-05 20:13
Guffa13-Oct-05 20:13 
GeneralRe: C# Threading Pin
eggie513-Oct-05 20:24
eggie513-Oct-05 20:24 
GeneralRe: C# Threading Pin
Stefan Troschuetz13-Oct-05 22:06
Stefan Troschuetz13-Oct-05 22:06 
I think a timer would be a good solution for your problem, cause it was made to execute code in regular intervals. Now you have to select the right timer for your needs.
If you use the System.Windows.Forms.Timer, your code will be executed in the UI thread. This prevents you from paying attention to threading issues, but if the code is time-consuming it will hang your GUI, cause the UI thread is busy.
If you use System.Timers.Timer or the System.Threading.Timer, your code will be executed by a worker thread. This won't affect your GUI, but you have to pay attention to threading issues e.g. change of GUI controls.
Take a look at this site[^] on MSDN for some more information.







www.troschuetz.de
QuestionWinForm design question Pin
ben213-Oct-05 11:55
ben213-Oct-05 11:55 
AnswerRe: WinForm design question Pin
Heks13-Oct-05 12:00
Heks13-Oct-05 12:00 
GeneralRe: WinForm design question Pin
ben213-Oct-05 12:31
ben213-Oct-05 12:31 
AnswerRe: WinForm design question Pin
Dave Kreskowiak13-Oct-05 13:53
mveDave Kreskowiak13-Oct-05 13:53 
AnswerRe: WinForm design question Pin
Scott Serl14-Oct-05 6:12
Scott Serl14-Oct-05 6:12 
QuestionSerialization problem Pin
Kyoun13-Oct-05 10:59
Kyoun13-Oct-05 10:59 
AnswerRe: Serialization problem Pin
Matt Gerrans13-Oct-05 11:25
Matt Gerrans13-Oct-05 11:25 
GeneralRe: Serialization problem Pin
Heks13-Oct-05 11:38
Heks13-Oct-05 11:38 
QuestionValidation in Business Layer Pin
tsramkumar13-Oct-05 10:08
tsramkumar13-Oct-05 10:08 
AnswerRe: Validation in Business Layer Pin
facorreia13-Oct-05 11:08
facorreia13-Oct-05 11:08 
QuestionRichTextBox save as HTML Pin
jeweladdict13-Oct-05 8:55
jeweladdict13-Oct-05 8:55 
AnswerRe: RichTextBox save as HTML Pin
Daniel Grunwald13-Oct-05 9:47
Daniel Grunwald13-Oct-05 9:47 
GeneralRe: RichTextBox save as HTML Pin
jeweladdict13-Oct-05 12:09
jeweladdict13-Oct-05 12:09 
GeneralRe: RichTextBox save as HTML Pin
Judah Gabriel Himango13-Oct-05 15:28
sponsorJudah Gabriel Himango13-Oct-05 15:28 
QuestionEnableViewState question Pin
kani9813-Oct-05 8:27
kani9813-Oct-05 8:27 
AnswerRe: EnableViewState question Pin
Guffa13-Oct-05 9:01
Guffa13-Oct-05 9:01 
QuestionAccessing objects in resource files Pin
Rendili13-Oct-05 8:01
Rendili13-Oct-05 8:01 

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.