小编Pep*_*nho的帖子

我如何获得屏幕方向?

我正在输入要显示表单的屏幕数.我必须得到屏幕方向.有谁知道怎么做?

 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
        }
    }
Run Code Online (Sandbox Code Playgroud)

c# screen-orientation

3
推荐指数
1
解决办法
2207
查看次数

标签 统计

c# ×1

screen-orientation ×1