Need some help with calendar color
I need to make that when the user asigns a message to the date the date color changes. I was trying to make the calendars day color change but i was unsuccessful here is the code, maybe someone can help, thank's in advance.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text = "" Then
If File.Exists(t & ".txt") = True Then
File.Delete(t & ".txt")
End If
End If
If TextBox1.Text.Length > 0 Then
File.WriteAllText(t & ".txt", TextBox1.Text)
TextBox1.Enabled = False
TextBox1.Hide()
Button1.Enabled = False
Button1.Hide()
Button2.Enabled = False
Button2.Hide()
Button3.Enabled = False
Button3.Hide()
MonthCalendar1.Enabled = True
MonthCalendar1.Show()
MonthCalendar1.TitleBackColor = System.Drawing.Color.Red
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub