This is a screen control code for a similar area in one of my projects:
int screenId = RegistryManager.ScreenId;
if (screenId > 0)
{
if (System.Windows.Forms.Screen.AllScreens.Length == 2)
{
if (screenId == 1)
this.Location = new System.Drawing.Point(System.Windows.Forms.Screen.AllScreens[0].Bounds.Left, 0);
else
this.Location = new System.Drawing.Point(System.Windows.Forms.Screen.AllScreens[1].Bounds.Left, 0);
}
}
source
share