所以我有一个程序在辅助屏幕上显示输出,问题是表格2仍显示在主屏幕上,争议将索引从0更改为1,所以我想知道可能是什么问题?
try
{
OutputDisplay form2 = new OutputDisplay();
Screen[] sc;
sc = Screen.AllScreens;
//get all the screen width and heights
form2.FormBorderStyle = FormBorderStyle.None;
form2.Left = sc[1].Bounds.Width; //integer used to represent which screen
form2.Top = sc[1].Bounds.Height;
form2.StartPosition = FormStartPosition.Manual;
form2.Show();
}
catch
{
MessageBox.Show("Connection Error 101, Unable to open Remote Display");
}