I think I found the error, although not intuitive to me. When I cut and pasted all the controls from old form onto new one that was built from the class, a hyperlink control was causing the problem so I removed it. Now I do not get that error.
>
However I get an error when
>the form starts up. "property width,height,top,left are not found. I added them!
>and they're public.>
>WHAT? You added public variables to hold these properties. NOT a good idea. The code I posted works as is - If you have a copy of
1001 Things You Wanted to Know About Visual FoxPro you can find a sample form and the form class in Chapter 11.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."