I have dll forms that are opened within a main form in a right panel. The dll forms parent is set to the main form's right panel. The dll's form's parent TWinControl is transferred to the main form via a parameter in the exporting procedure. I want to connect to a database and load data in the dll forms FormActivate, but when the dll is opened its FormActivate is never triggered. I tried forcing FormActivate in the dll's exporting prodecure right after showing the form by adding: SendMessage(DLLFormName.handle, WM_ACTIVATE, WA_ACTIVE,0); but this gave me an error "Cannot focus a disabled or invisible window". Is there no way to still access the dll form's onactivate when the form's parent is another form?