NeroMaj, did you ever get a working solution for this? I have exactly the same problem, and I get the same error. I'm trying to create rectangles on a form at run-time, so the rectangles are drawn as required. When the CreateControl method runs I get the error as you do. Yes, the form is placed...