i coded to validate first rule(Both DateTimePickers should be in same month),but it ll never end.code as below,n picture attached,Thank you all.
if (dateTimePicker1.Value.ToString("MM") != dateTimePicker2.Value.ToString("MM"))
{
MessageBox.Show("Cannot search for different months!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
else
{
}
Attached image(s)
This post has been edited by Atli: 29 November 2012 - 09:29 PM
Reason for edit:: Please use [code] tags when posting code.

New Topic/Question
Reply



MultiQuote




|