I have two fields as follows
Lease Effective From in datetimepicker 8/5/2010
Lease Renewal Due On in datetimepicker 7/4/2011
i want to remind the lease renewal is only three month.i want to give pop up message.
how to do.please help me.please given the code.
thanks,
Rgds,
Narasiman P
Doubt regarding pop up message reminder
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jun 22, 2012, 12:14 AM EDT
if (DateTime.Today <= dateTimePicker2.Value && DateTime.Today.AddMonths(3) >= dateTimePicker2.Value)
{
MessageBox("Please note that the lease is due to be renewed on " + dateTimePicker2.ToShortDateString());
}