Anu,
Thanks for the speedy reply. This looks like it will work fine. However, is there an easy way to incorporate this for all integer text boxes on the screen? I may have as many as 50(!) and would like to make this a default behavior for all of them. Thanks again.
>Hi Jv,
>
>You can handle the Enter event as well as the Validated event inorder to get Modified property work in your scenario.Please take a look at the code snippet given below:
>
>private void integerTextBox1_Enter(object sender, System.EventArgs e)
> {
> initial= this.integerTextBox1.Text ;
> }
>
> private void integerTextBox1_Validated(object sender, System.EventArgs e)
> {
> if(initial!= this.integerTextBox1.Text)
> {
> this.integerTextBox1.Modified=true;
> }
> else
> {
> this.integerTextBox1.Modified=false;
> }
> }
>
>
>
>I am attaching a sample here.Please run this at your end and let me know if this helps you.
>
>
Sample
>
>
>Thanks,
>
>Anu.
>