So yeah basically what i'm trying to do is to enable a disabled button,after 24 hours starting from the time it has been disabled!!!
Right now my code is this:
Code:
Private Sub FlatButton1_Click(sender As Object, e As EventArgs) Handles FlatButton1.Click
        Static ctClicks As Integer = 0
        ctClicks += 1
        If ctClicks = 10 Then FlatButton1.Enabled = False
        Using wc As New WebClient

            Dim response As String = wc.DownloadString("http://website.com/text.php")
            FlatTextBox1.Text = response

        End Using
       
    End Sub
I was thinking of doing something like this:
If DateTime.Today.AddDays(1)
Then
FlatButton1.Enabled = True
End If