Hi Marc;
Yes, any internal or O/S dialogue (like Message Box dialogue for example) will always appear on Monitor #1. You cannot control this aspect.
Workarounds:
1) Code your own MsgBox, PrintSet-up, etc dialogues and then center them upon open with your App's current location or in the case of PowerServer Web App's, within where the web browser is located.
FWIW: My STD Framework uses this approach - Including, IWA based Apps. ;-)
2) Use the FindWindow O/S API call to locate the Handle of PB or O/S dialogues. Using the handle of the Window, you could now under program control relocate it to monitor #2.
IMHO: This would make a great enhancement suggestion for the PB run-time.
Regards .. Chris
I'll let you know what was wrong with my code.
I didn't use longptr but ulong.
The size has to be 40 effectively !! That was the main problem.
Thanks again, this makes up for my 24 hour workday yesterday. I can sleep now.
:)