hi
to all I got finally solution. I send this solution to all for future use.
First of all add a picturebox inside DateTimepicker. Add a image inside a picture box That image look \/ i.e at the end of datetime picker what is contains.
In form load hide monthcalender. Picture-box click event show monthcalender.
See The code here
private void Form1_Load(object sender, EventArgs e)
{
monthCalendar1.Hide();
}
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
monthCalendar1.SetDate(dateTimePicker1.Value);
}
private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
{
dateTimePicker1.Value = Convert.ToDateTime(monthCalendar1.SelectionStart.ToShortDateString());
monthCalendar1.Hide();
}
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
monthCalendar1.Hide();
}
private void dateTimePicker1_MouseDown(object sender, MouseEventArgs e)
{
monthCalendar1.Hide();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
monthCalendar1.Show();
monthCalendar1.Focus();
}
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
dateTimePicker1.Value = Convert.ToDateTime(monthCalendar1.SelectionStart.ToShortDateString());
}
}
}
This is exact for my requirement Please watch This