The object you are using hasn't been initialize with a NEW statement. You probably have a typo error in you program. A window object like a control has a handle number which is the window number or process number. An variable that hasn't
been set to a value is pointing to NULL so it won't have a handle number. I suspect you have a NULL object which is giving the error message.
jdweng