>>>thank you Hilmar, i think is better with setall()...
>
>>In the case you describe, I suppose it is. Consider the class alternative >when similar objects are dispersed amongst several forms.
>
>You are right, when similar objects textbox like name of customer and salary i have the problem that setall("inputmask","999,999,999.99","textbox") do you know some way to identify when textbox is using really number and not text? some different like do my own textbox class because i'm trying to do not have to change every textbox in several forms...
>
>thanks
It is for those cases that I suggested the class. You have to replace all relevant textboxes with your specialized class, but that is only once. Then, any change will not have to be copied & pasted, but will work in all relevant textboxes, in all forms, through the magic of inheritance.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)