在第二台显示器上显示表格

在第二台显示器上显示表格

本文介绍了在第二台显示器上显示表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在第二台显示器上显示我的表格


我定义 


公共对象位置{get;私人集; }



            this.Left = Screen.AllScreens [Monitor] .Bounds.Width;

            this.Top = Screen.AllScreens [Monitor] .Bounds.Height;

            this.Location = Screen.AllScreens [Monitor] .Bounds.Location;

            new System.Drawing.Point(Screen.AllScreens [Monitor] .Bounds.Location.X,           Screen.AllScreens [Monitor] .Bounds.Location .Y);



但表格显示在第一台显示器上


解决方案

I would like show my form on second monitor

I define 

public object Location { get; private set; }

            this.Left = Screen.AllScreens[Monitor].Bounds.Width;
            this.Top = Screen.AllScreens[Monitor].Bounds.Height;
            this.Location = Screen.AllScreens[Monitor].Bounds.Location;
            new System.Drawing.Point(Screen.AllScreens[Monitor].Bounds.Location.X,                    Screen.AllScreens[Monitor].Bounds.Location.Y);

But Form show on first monitor

解决方案


这篇关于在第二台显示器上显示表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 09:00