Bonjour,
Pourquoi mon task est surligné dans mes erreur debug svp? Merci
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
16
17
18
19
20 Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load CheckConnection() End Sub Async Sub CheckConnection() Await Task.Delay(60000) Try If Net() = True Then InternetConnection.ForeColor = Color.Green InternetConnection.Text = "OK" ElseIf Net() = False Then InternetConnection.ForeColor = Color.White InternetConnection.BackColor = Color.Red InternetConnection.Text = "KO" End If Catch ex As Exception InternetConnection.Text = "KO" End Try CheckConnection() End Sub
Partager