Home » FAQ » ASP.NET » Calendar » How to highlight today’s date in Calendar Control in different color
In Calendar DayRender Event
VB.NET
If e.Day.IsToday Then e.Cell.ForeColor = Color.Blue e.Cell.BackColor = Color.Pink End If
C#
if (e.Day.IsToday) { e.Cell.ForeColor = Color.Blue; e.Cell.BackColor = Color.Pink; }
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with