J
John
Another Best Performances Practice Question:
Here's the scenario, as some of you who viewed and responded to my
earlier question already know:
I have a public class (csValidation) which contains different validation
functions. These functions will be called from within many different
forms when a textbox is filled in by the user. I have an event in the
form that checks the textbox and opens up the validation function in the
csValidation class (thanks for the code, gabriel). When is the best
time to instantiate the csValidation class? Should I do it publicly (or
privately) in the form (Ex: public csValidate csV = new csValidate()
,
or should I do it privately in the actual event that calls the
validation funtion?
TIA,
John
Here's the scenario, as some of you who viewed and responded to my
earlier question already know:
I have a public class (csValidation) which contains different validation
functions. These functions will be called from within many different
forms when a textbox is filled in by the user. I have an event in the
form that checks the textbox and opens up the validation function in the
csValidation class (thanks for the code, gabriel). When is the best
time to instantiate the csValidation class? Should I do it publicly (or
privately) in the form (Ex: public csValidate csV = new csValidate()

or should I do it privately in the actual event that calls the
validation funtion?
TIA,
John