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.
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
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.
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" <toto@toto.com> wrote in message
news:ekeq6g$4rf$1@s1.news.oleane.net:
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.
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.
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.
Merci bcp
"Richard Clark" <rc at c2i.fr> a écrit dans le message de
news:OjiBqBjEHHA.1196@TK2MSFTNGP02.phx.gbl...
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" <toto@toto.com> wrote in message
news:ekeq6g$4rf$1@s1.news.oleane.net:
> 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.
"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.