>After adding an object with ADDOBJECT how are events like valid and keypress events done. I can change other things like visible, size, ...ect but events for valid and keypress I receive a read only error.
>This is in a prg file.
>
>Thanks in advance.
That's because Valid,Keypress,etc are events and you cannot modify them after you instanciated an object from class. Therefore, you should go to class definition (class designer) to write (if necessary) your own code into those events.
Edward Pikman
Independent Consultant