MultiMonitor Form Positions In ActiveX DLL's
Posted on 2004-04-27
I have a multi monitor system running XP. I have a normal application and several ActiveX DLL's which contain forms.
The problem is when I load my application and move it to the other screen when I call a method on my ActiveX DLL the forms they produce appear on the primary monitor and not the monitor of the app that called it.
Obviously if I were to have the forms inside my main application and NOT in the dlls then I could use properties like :
(Position := poScreenCenter and DefaultMonitor := dmActiveForm)
I could do some nasty stuff like pass the monitor the Dlls should appear on into the DLLs but that seems a bit cack. Does anyone know a way of doing this automatically?