title: Calculating age from datetimepicker and instantly showing that age in textbox
body: <p>i want to calculate age from datetimepicker.
  As soon as user selects date from datetimepicker age is calculated and then is shown automatically in age textbox instantly.
  this is what i have done in console application</p>
  
  <pre><code> int age = 0;
   DateTime currentDate = DateTime.Parse( DateTime.Now.Date.ToShortDateString());           
   Console.WriteLine(currentDate);
   Console.WriteLine("Please enter your birthdate");
   DateTime birthdate = DateTime.Parse( Console.ReadLine());
   age = currentDate.Year - birthdate.Year;
   if (currentDate.Month &lt;birthdate.Month)
    {
         age--;
    }
   else if ((currentDate.Month &gt;= birthdate.Month) 
              &amp;&amp; (currentDate.Day &lt; birthdate.Day))
   {
         age--;
   }
  
   Console.WriteLine(age);
  </code></pre>
  
  <p>I can do same logic of calculating age in winform application.But i do not have any idea after that,how to show that age in age textbox automatically instantly after user have selected age from datetimepicker.</p>