Salut a tous
j'ai réalisé un programme qui lit data from Rs232 , mais j'ai un problème dans cette fonction :
il me donne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e AsSystem.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived Label8.Text = SerialPort1.ReadExisting() End Sub
c'est quoi le thread et comment régler ce problème ?Cross-thread operation not valid: Control 'Label8' accessed from a thread other than the thread it was created on.
Merci de m'aider
Partager