>Thanks Tore. Could you point me to somewhere I can learn to do that?
The concept is called
Event call Method. It means nothing then to have an extra method on every event. The baseclass event just call the method. The trick is that you can call the method without raising the possible (side) effects of the original event.
You need have subclassed each and every baseclass into your own class and allways use this class.
IOW instead of instances of textbox you have to have my_textbox in some vcx and replace every textbox instance with this. (One can USE the vcx / scx to do this with a simple REPLACE)
And (to your last message) this does not belong to the form.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]