Salut!
-J'ai dans ma Class Form1 ce code :
Private Sub btnSearch_Click(
ByVal sender
As System.
Object,
ByVal e
As System.EventArgs)
Handles btnSearch.Click
Dim Ths
As System.Threading.ThreadStart =
New System.Threading.ThreadStart(
AddressOfsearch)
Dim Th
As System.Threading.Thread =
New System.Threading.Thread(Ths)
Th.Priority = System.Threading.ThreadPriority.BelowNormal
Th.IsBackground =
True Th.Start()
Do Th.Join(1)
Application.DoEvents()
Loop Until Not Th.IsAlive
end subLe probléme c'est que quand je clique sur le button il me renvoi une erreur :
Cross-Thread operation not valid : Control 'rep' accessed from a thread other than
the thread it was created onrep= un control Listbox
-Merci de m'aider