Open form on same monitor as Outlook is open on

Add-in Express™ Support Service
That's what is more important than anything else

Open form on same monitor as Outlook is open on
detect monitor that outlook is open on 
bluewwol




Posts: 26
Joined: 2022-01-21
Hi;

I am opening a form from my add-in, however on a multi monitor system I cant seem to identify which monitor outlook is open on so that I can open my form on that same monitor.

Thanks for the assistance
-Allen
Posted 22 Oct, 2022 12:41:34 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Allen,

First, call MonitorFromWindow(windowHandle, dwFlags). Then call GetMonitorInfo(), get the monitor's coordinates and move your form there.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 24 Oct, 2022 05:05:32 Top
bluewwol




Posts: 26
Joined: 2022-01-21
Thank you
Posted 24 Oct, 2022 11:17:35 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
You are welcome!

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 25 Oct, 2022 03:20:36 Top