Albert,
You are right, you can’t write code in the _screen.keypress event. You have to create your one form, if you want to write code in the Keypress Event.
At this point you don’t have to worry about classes. The main thing, is to get your code to work.
>I already came to the same conclusion,
>but now i get the following,
>
>How do i write some code in _screen.keypress()
>I am not to good in all the 'class' things ad i assume i have to do it via a class.
>
>Actually in keypress() i only want to reset a timer.
>
>Albert
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"