// Check for upcoming appointments
``` foreach (DataRow row in dtblAppointments.Rows)
{
DateTime eventDT =
DateTime.Parse(row["Start"].ToString());
if(eventDT > DateTime.Now && eventDT.AddMinutes(15)
>= DateTime.Now)
{
MessageBox.Show("Alert - Appointment " +
row["ID"].ToString() + " " + row["Title"].ToString() + "
starts in 15 minutes or less.");
}
}```
Updated the code, i copied in the wrong lines. Can someone help me create an alert for a appointment that is occurring within 15 min. This just randomly alerts for the entire day