Pls can any one help. i need a programe that if month is the highlighted in the calendar to display textbox1 to be True but if is false to display is False. With specify date. pls have a look at my code it only display False if when the date is True. HELP

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

If TextBox1.Text = Format(Me.MonthCalendar1.TodayDate, "mm/dd/yyyy") Then
textbox2.text = "true"
Else
textbox2.text = "False"

End If
End Sub

Set a breakpoint and step through the program - my guess is that you don't hit the true ever.

Otherwise you may need to display more code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.