Hi Steve,
>I saved this code inside a .PRG file called CLASCODE.PRG
>I already have all of my textboxes on my forms and they are all based upon the default textbox class. I can't understand how to take this class definition and incorporate it into my existing textboxes.
I don't think you can visually add a class stored in procedure to a form at design time. What you will have to do, is save your class into a VCX. Then, you can hack your form like this:
USE MyFOrm.SCX
replace class with MyTextBox, classloc with MyLib.vcx ;
for lower(baseclass) = 'textbox'