Questo è il codice!
codice:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
trd = New Thread(AddressOf Thrd)
trd.IsBackground = True
trd.Start()
End Sub
Public Sub Thrd()
ToolStripComboBox1.SelectedItem = ToolStripComboBox1.Items.Item(0)
End Sub
Mi da il seguente errore:
Operazione cross-thread non valida: è stato eseguito l'accesso al controllo '' da un thread diverso da quello da cui è stata eseguita la creazione.
Come faccio a risolvere? Grazie in anticipo!!