Hello, You can use the following code in the LostFocus event of the Textbox1. BEGIN CODE DateTime dt; if(textBox1.Text != "") { dt = System.Convert.ToDateTime(this.textBox1.Text); textBox2.Text = dt.AddDays(30).ToShortDateString(); } END CODE I believe this should help. Regards, Allen
Allen Smith Software Engineer ComponentOne LLC www.componentone.com
|