Im using axMsRDPClient7NotSafeForScripting and connecting to windows 2008 r2 server in RemoteApp or "RemoteProgram.RemoteProgramMode = true". Everything opens fine, but the applications are opening in the center of screen which is fine until there is multi monitors. When there is multiple monitors the remoteapp opens in the center of the two screens.
I am able to maximize an application on one screen or another and it appears it understands the h x w of each monitor, but if the application has a child form it opens in the center of both screens.
If I utilize mstsc.exe v6,7 etc and connect with basic remoteapp the applications are more aware of dual monitors and handle child forms etc in proportion to the main open app. I believe this is due to setting different parameters in the rdp file, such as:
use multimon:i:1
screen mode id:i:1
span monitors:i:1
I am unable to find a way to activate these settings on my mstsclib control on my c# application. The only way I can get the control to recognize the Desktop W & H is to set:
rdpClient.DesktopWidth = SystemInformation.VirtualScreen.Width;
rdpClient.DesktopHeight = SystemInformation.VirtualScreen.Height;
On connecting. This does set the remote desktop to expand over the multiple monitors, but as you would expect it is treating the Desktop W/H on the session as one big screen.