validation of TextBoxes!? [Archive] - C Board

PDA

View Full Version : validation of TextBoxes!?


c9dw2rm8
04-01-2008, 02:39 AM
Hello

I build a form with some text boxes and to every text box there is validating option(form 1)
Now i try to build another form but he uses the same validation ...
How can i use in form2 the same validation function from form1 ?

sorry about the broken English

mike_g
04-01-2008, 06:19 PM
Maybe create a class that inherits a 'text box' with functions to do recurring stuff (like validate content). Or you could create a function in your main interface/class that gets the text and validates it. Or you could make a global funcion for it.