Hi,

I have created one mdi form and many child forms in my
applicaion. In one of the forms, I have implemented leave
event for one text box which gives a messagebox if the
value has been changed in the text box.
I also have a toolbar that closes all child forms (one at
any point of time) and opens another form.
The problem is that when I change the text box value and
click on toolbar it popsup the message.

How can i avoid that, only when toolbar is clicked?

Regards,
Teekam.

Events in windows forms by William

William
Sat Aug 23 14:08:32 CDT 2003

So is the event firing twice? Can you post the code
snippet, I think I could get alittle clearer idea of the
problem then.

Bill
>-----Original Message-----
>Hi,
>
>I have created one mdi form and many child forms in my
>applicaion. In one of the forms, I have implemented leave
>event for one text box which gives a messagebox if the
>value has been changed in the text box.
>I also have a toolbar that closes all child forms (one at
>any point of time) and opens another form.
>The problem is that when I change the text box value and
>click on toolbar it popsup the message.
>
>How can i avoid that, only when toolbar is clicked?
>
>Regards,
>Teekam.
>.
>