Filip,
>What am I looking for in the generated code, anything in particular?
Just look for code that's automatically added to the form in the "hidden" code area to see if anything looks suspicious that might be causing this error.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com