L
Leif Eirik Olsen
Hi,
I have a main form frmMain, frmMain creates an instance of a class MyThread.
MyThread creates a thread and countiously reads a comport for some string
data.
When a certain string is recieved MyThread fires an event OnDataRecieved.
frmMain has an eventhandeler implemented (DataRecieved) for the
MyThread.OnDataRecieved event.
So finally my question
Is it safe to update textbox and label values from within
frmMain.DataRecieved ?
Any help or hints greatly appriciated.
regards,
Leo
I have a main form frmMain, frmMain creates an instance of a class MyThread.
MyThread creates a thread and countiously reads a comport for some string
data.
When a certain string is recieved MyThread fires an event OnDataRecieved.
frmMain has an eventhandeler implemented (DataRecieved) for the
MyThread.OnDataRecieved event.
So finally my question
Is it safe to update textbox and label values from within
frmMain.DataRecieved ?
Any help or hints greatly appriciated.
regards,
Leo