Click here to Skip to main content
15,913,233 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can we create Image type from base64 string ? Pin
User 665818-Jun-08 11:48
User 665818-Jun-08 11:48 
GeneralRe: How can we create Image type from base64 string ? Pin
Mohammad Dayyan18-Jun-08 11:56
Mohammad Dayyan18-Jun-08 11:56 
QuestionOpenSSL key generation in PEM format Pin
Mike Bentzen18-Jun-08 10:44
Mike Bentzen18-Jun-08 10:44 
QuestionSerial Port Help Pin
Chase Davis18-Jun-08 9:30
Chase Davis18-Jun-08 9:30 
AnswerRe: Serial Port Help Pin
carbon_golem18-Jun-08 10:01
carbon_golem18-Jun-08 10:01 
AnswerRe: Serial Port Help Pin
Alan N18-Jun-08 10:09
Alan N18-Jun-08 10:09 
GeneralRe: Serial Port Help Pin
Chase Davis18-Jun-08 10:20
Chase Davis18-Jun-08 10:20 
GeneralRe: Serial Port Help Pin
Alan N18-Jun-08 13:10
Alan N18-Jun-08 13:10 
The technique used to update controls correctly in multithreaded programmes is given here http://msdn.microsoft.com/en-us/library/ms171728(VS.80).aspx[^] and it will also be in the local help if you are using a version of Visual Studio.

The knowledge required to implementing threading reliably is not small and when you first encounter the subject it it can be quite daunting. The advice from Microsoft is to ensure that controls are only updated from the thread that created them and the reason for this is to prevent corruption of their “state” . The Control.Invoke methods essentially allow any thread to send the instruction, “Update the control with this information”, to the control’s creator thread.

That said, it is not obvious from the code you have posted if control updating has caused your problem and I would urge you to post your timer setup code. After all, if the timer is setup correctly and it is enabled then it should fire.

The Forms.Timer runs on the UI thread so your code within the tick handler looks ok. I was having a bit of a brainstorm in my previous post when I implied that the Forms.Timer would run on a separate thread. Also changing the timer’s enabled state from the serial port event thread should not be a problem.

Alan.
QuestionHow to check if keyboard input occurs within a certain time limit? Pin
Michael Zmuda18-Jun-08 9:13
Michael Zmuda18-Jun-08 9:13 
AnswerRe: How to check if keyboard input occurs within a certain time limit? Pin
User 665818-Jun-08 9:21
User 665818-Jun-08 9:21 
QuestionAxWebBrowser question Pin
kozu18-Jun-08 8:51
kozu18-Jun-08 8:51 
AnswerRe: AxWebBrowser question Pin
Judah Gabriel Himango18-Jun-08 11:31
sponsorJudah Gabriel Himango18-Jun-08 11:31 
GeneralRe: AxWebBrowser question Pin
kozu18-Jun-08 11:59
kozu18-Jun-08 11:59 
QuestionGCHandle.Alloc and delegate Pin
Andy Brummer18-Jun-08 7:13
sitebuilderAndy Brummer18-Jun-08 7:13 
AnswerRe: GCHandle.Alloc and delegate Pin
carbon_golem18-Jun-08 9:12
carbon_golem18-Jun-08 9:12 
GeneralRe: GCHandle.Alloc and delegate Pin
Andy Brummer18-Jun-08 11:00
sitebuilderAndy Brummer18-Jun-08 11:00 
QuestionClickOnce Pin
Member 391904918-Jun-08 7:07
Member 391904918-Jun-08 7:07 
AnswerRe: ClickOnce Pin
Gareth H18-Jun-08 8:15
Gareth H18-Jun-08 8:15 
Question.NET Remotable Types Pin
conor2018-Jun-08 5:39
conor2018-Jun-08 5:39 
QuestionType casting Pin
indian14318-Jun-08 5:04
indian14318-Jun-08 5:04 
AnswerRe: Type casting Pin
DaveyM6918-Jun-08 5:08
professionalDaveyM6918-Jun-08 5:08 
AnswerRe: Type casting Pin
led mike18-Jun-08 5:21
led mike18-Jun-08 5:21 
AnswerRe: Type casting Pin
Pete O'Hanlon18-Jun-08 8:37
mvePete O'Hanlon18-Jun-08 8:37 
QuestionCustom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 5:01
rcaciopp18-Jun-08 5:01 
AnswerRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
led mike18-Jun-08 5:26
led mike18-Jun-08 5:26 

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.