Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Problème avec les threads

2 réponses
Avatar
tototiti
Bonjour à tous,

Dans mon application j'utilise un thread. Dans ce thread, j'aimerais
afficher mes différentes étapes dans un label qui appartient à ma forme.
Même si le compilo dit qu'il n'y a pas d'erreur, ça ne fonctionne pas.

Si quelqu'un peut m'aider, merci.
David.

2 réponses

Avatar
Richard Clark
Il faut resynchroniser ton UI avec le thread avec this.Invoke:
http://www.c2i.fr/code.aspx?IDCodeb3

--
Richard Clark - MVP .NET
http://www.c2i.fr
http://www.project-hoshimi.com


"tototiti" wrote in message
news:ekeq6g$4rf$:

Bonjour à tous,

Dans mon application j'utilise un thread. Dans ce thread, j'aimerais
afficher mes différentes étapes dans un label qui appartient à ma forme.
Même si le compilo dit qu'il n'y a pas d'erreur, ça ne fonctionne pas.

Si quelqu'un peut m'aider, merci.
David.


Avatar
tototiti
Merci bcp

"Richard Clark" <rc at c2i.fr> a écrit dans le message de
news:
Il faut resynchroniser ton UI avec le thread avec this.Invoke:
http://www.c2i.fr/code.aspx?IDCodeb3

--
Richard Clark - MVP .NET
http://www.c2i.fr
http://www.project-hoshimi.com


"tototiti" wrote in message
news:ekeq6g$4rf$:

> Bonjour à tous,
>
> Dans mon application j'utilise un thread. Dans ce thread, j'aimerais
> afficher mes différentes étapes dans un label qui appartient à ma forme.
> Même si le compilo dit qu'il n'y a pas d'erreur, ça ne fonctionne pas.
>
> Si quelqu'un peut m'aider, merci.
> David.