good morning guys.
i have a problem in trying to figure out how to compare a user entered date and time with the system date and time.
what i WANT to have happen is this:
it is a reminder program that holds a date/time picker for the user to select a date- and then a textbox for the user to type in the time of the reminder. this information is then stored into a listview, which is SUPPOSE to (lol) shoot up a message box when the system hits that particular date and time.
every part of this project is working fine- EXCEPT it doesnt work LOLLLLLLLLLLL- meaning it will not shoot me my message box :(
i just dont get it, and i am really hoping SOMEONE can tell me what the hell i am doing(or not doing...)
here is the run down of controls:
a date/time picker- allows the user to select the DATE
a textbox- allows the user to type in the TIME
a textbox- allowing the user to type in what the messagebox will say when it comes up-
and a listview to store the reminders in
also have a label that shows the current date and a label that shows the current time on the form
OKAY--- here is the ENTIRE code block for the reading of my listview and where i am trying to get the messagebox to show. i have a pre-generated message in the message box right now as a test, (lol...a test that has not worked yet!:
Private Sub ReadReminderList()
If Not System.IO.File.Exists(Application.StartupPath & "\ReminderList.xml") Then Exit Sub
Dim doc As New XmlDocument
doc.Load(Application.StartupPath & "\ReminderList.xml")
For Each node As XmlNode In doc.SelectNodes("//Item")
Dim item As New ListViewItem
Dim nodeAttributes As XmlAttributeCollection = node.Attributes
item.Text = nodeAttributes(0).InnerText 'Date
If nodeAttributes(0).InnerText.Equals(Date.Now) AndAlso nodeAttributes(1).InnerText.Equals(TimeOfDay) Then
doc = Nothing
Catch ex As Exception