19-02-21, 11:01 PM
الكود التالي ينفذ كل 10 من الشهر اريد ان ينفذ كل سنة وشكرا للمساعدة
Dim dayToEnable As String = 10
Button1.Enabled = False
If DateTime.Today.Day = dayToEnable Then
Button1.Enabled = True
End If
Dim dayToEnable As String = 10
Button1.Enabled = False
If DateTime.Today.Day = dayToEnable Then
Button1.Enabled = True
End If