![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Control ‘X′ accessed from a thread other than the thread it was created onI try to access some controls from the DataReceived event of a serial port..
I get : Control ‘X′ accessed from a thread other than the thread it was created on I googled for a while, and I found this answer to the cross-thread probl. C-SHARP / C# Code:
but it doesn;t work (I guess it has to do with the 'object' thing since DataReceived uses 'System::IO: Last edited by LuciWiz : 22-Jan-2009 at 06:47.
Reason: Please insert your C# code between [c#] & [/c#] tags
|
|||
|
#2
|
|||
|
|||
Re: Control ‘X′ accessed from a thread other than the thread it was created onNone?
|
|
#3
|
|||
|
|||
Re: Control ‘X′ accessed from a thread other than the thread it was created onHere is how you can do it:
C-SHARP / C# Code:
|
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to control dying of a thread in MFC application?? | buffet | MS Visual C++ / MFC Forum | 1 | 27-Apr-2007 18:29 |
| Thread synchronization Assignment help!! | rossi143 | C Programming Language | 1 | 25-Mar-2007 21:10 |
| Thread | itch | C++ Forum | 7 | 10-May-2006 16:10 |
| changing colour of individual items of control created through CListCtrl | Sadia | MS Visual C++ / MFC Forum | 0 | 01-Jul-2005 09:09 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 04:38 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The