title: Getting the previous value of an object at ValueChanged event
body: <p>I am trying to get the previous value of DateTimePicker when it hits the event ValueChanged. The other possible solution to my problem would be getting whether the user clicked on a value and chose it or it was invoked by some method. My problem is I need to know what caused this event and execute some code only if the previous value was different. I have read <a href="https://stackoverflow.com/questions/11496860/getting-previous-value-of-the-combobox">this</a> and didn't like the solution to the possible way #2.</p>
  
  <p>So again:</p>
  
  <pre><code>if user clicks
  {
      execute some code
  }
  else // if method was invoked
  {
      do NOT execute
  }
  
  OR
  
  if value is NOT the same as previously
  {
      execute some code
  }
  else
  {
      do NOT execute
  }
  </code></pre>
  
  <p>Either of that suits me, but I am unable to find the previous value in the list of available properties nor in EventArgs (which is null :( ). Hope I was clear what I want to achieve. If you ask for the reasons that I need this, it is irrelevant and I cannot edit the other code, just this method.</p>