title: How to prevent DateTimePicker Valuechanged Event from Textbox Leave Event
body: <p>In my C# Windows form have one textbox and one datatimePicker.This textbox has Leave Event and 
  when textbox leave event occured,I want to fill value in datetimepicker. This datetimepicker also has ValueChanged Event.
  Now my problem is when fill value in datetimepicker from textbox leave event,same time datetimepicker ValueChanged Event also occured.
  So textbox leave event occur again.
  In this problem, I don't want to occur datetimepicker Valuechanged Event from textbox Leave Event.
  This is sample for my code.<br></p>
  
  <pre><code>private void textbox_Leave(object sender, EventArgs e) 
  { 
        datetimepicker.Value = System.DateTime.Now.ToString("dd/MM/yyyy").Substring(0, 10); 
  } 
  
  private void datetimepicker_ValueChanged(object sender, EventArgs e) 
  { 
        //do something 
  } 
  </code></pre>
  
  <p>Thanks for help. Sorry for my English.</p>