在第二台显示器上显示表格 [英] Show form on second monitor

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

问题描述

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


我定义 


公共对象位置{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);



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


解决方案

您好,


您的应用程序是Winform或WPF,如果它是WPf应用程序,并且您想要显示您的窗口在第二台显示器上,请查看以下主题:


https://social.msdn.microsoft.com/Forums/en-US/32d60663-8264 -4153-9fb0-7053468191f2 / how-to-show-a-wpf-window-in-secondary-monitor?forum = wpf



最诚挚的问候,


Cherry


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

解决方案

Hello,

Your application is Winform or WPF, if it is WPf application, and you want to show your window on second monitor, please take a look the following thread:

https://social.msdn.microsoft.com/Forums/en-US/32d60663-8264-4153-9fb0-7053468191f2/how-to-show-a-wpf-window-in-secondary-monitor?forum=wpf

Best Regards,

Cherry


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆