If daynumber < startday And mnth = startmonth And yr = startyear Then
Private lbl As Label = set_label("",Colors.ARGB(100,230,230,230),"")
Else
If endday > 0 And daynumber > endday And mnth = endmonth And yr = endyear Then
Private lbl As Label = set_label("", Colors.ARGB(100,230,230,230),"")
Else
If daynumber = currentday And mnth = currentmonth And yr = currentyear Then
Private lbl As Label = set_label(daynumber, Colors.ARGB(100,255,50,50),"lblday")
Else
' test for sequence sunday to saturday (seq = 2)
If seq = 2 Then
If c = 1 Or c = 7 Then
Private lbl As Label = set_label(daynumber, Colors.ARGB(100,255,210,179),"lblday")
Else
Private lbl As Label = set_label(daynumber,Colors.ARGB(100,158,255,150),"lblday")
End If
Else
' monday to sunday (seq = 1)
If c > 5 Then
Private lbl As Label = set_label(daynumber, Colors.ARGB(100,255,210,179),"lblday")
Else
Private lbl As Label = set_label(daynumber,Colors.ARGB(100,158,255,150),"lblday")
End If
End If
End If
End If
End If