I'm seeing this @Star-Dust calendar class, and I would like to disable past or future days. I know it's possible because simple is a matter of logic and I'm having difficulty
If d=i Then
Lab.Background=Corner(Color)
Lab.Textcolor=Colors.White
LabelNow=Lab
'NEW CODE
Else If d > i Then
Lab.Color = Colors.Transparent
Lab.TextColor = Colors.LightGray
Lab.Enabled = False
Else
Lab.Color = Colors.Transparent
Lab.TextColor = Colors.Black
End If