Using multiple monitors programmatically from an RDP Active X control.

In Windows VISTA, Span mode was introduced. This allowed a Remote Desktop session to span across all monitors on the client as long as the monitors were arranged to form a rectangle. In Windows 7, this functionality was improved so it didn't have to form a rectangle. Here are some examples where you could span and couldn't span. For a detailed explanation, see the following:

Using multiple monitors (or spanning) from mstsc.exe is fairly straight forward. You can do this from the command line or directly in mstsc.exe or from a custom .RDP file.Programatically, you access a remote desktop server via the Remote Desktop Active X control. The control can be hosted on a Web Site or in an application. In an application, you can use the following code snippet: