J'en suis à mes débuts avec vb2005. Je cherche à savoir comment faire pour que les boutons ou label puissent afficher leur nouvelle valeur avant d'arriver au end sub. La ligne System.Threading.Thread.Sleep(2000) me permet de voir si tout fonctionne correctement.
Voici un exemple de mon problème:
Salut, Marc André
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 Public Class Form1 Dim a As Integer Public Sub Bouton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Bouton.Click a = a + 1 Bouton.Text = (a) Label1.Text = (a) System.Threading.Thread.Sleep(2000) End Sub End Class
Partager