我正在输入要显示表单的屏幕编号。我必须获取屏幕方向。有人知道如何做吗?
public UIManager(int screenIndex)
{
this.ScreenIndex = screenIndex;
try
{
Screen[] all_screens;
all_screens = Screen.AllScreens;
if (all_screens.Length >= ScreenIndex)
{
this.customer_form.Left = all_screens[this.ScreenIndex].Bounds.Width;
this.customer_form.Top = all_screens[this.ScreenIndex].Bounds.Height;
this.customer_form.Show();
}
}
catch
{
//Do nothing
}
}
dmDisplayOrientation
。 - Sriram SakthivelSystemInformation.SceenOrientation
? - Matthew Watson