C#将表单从停靠容器移动到第二个屏幕监视器 [英] C# move a form from a docking container to second screen monitor

查看:70
本文介绍了C#将表单从停靠容器移动到第二个屏幕监视器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过Cristinel Mazarine在C#中的文章:



Visual Studio IDE,如Dock Container - 第二版 [ ^ ]



我想添加以下选项:将表格从停靠容器移到停靠对接的能力,例如在第二台显示器中。


$ b $你能告诉我怎么做吗?



谢谢



FP



我尝试了什么:



我试图修改Cristinel Mazarine的代码,但我没有成功。

I've read Cristinel Mazarine's article in C#:

Visual Studio IDE like Dock Container - Second Version[^]

and i would like to add following option: the ability to move a form from docking container to out of docking, for example in a second monitor.

Can you tell me how to do?

Thanks

FP

What I have tried:

I've tried to modify Cristinel Mazarine's code but I did not succeed.

推荐答案

用户应该可以取消固定表单,然后将其拖到第二个监视器。你试过吗?



编辑=====================



如果图书馆不能满足您的需求,可以使用其他几种图书馆。其中一个替代方案是Dock Panel Suite。它声名鹊起的是它模仿Visual Studio窗口停靠界面,并且它可以与NuGet一起使用。试试看,看看它对你有用。另一种选择是CodePlex上的Avalon Dock(也许也可以在NuGet中使用)。



使用别人的(免费)代码的问题在于它很可能在最好被描述为废弃的状态(例如,您尝试使用的代码 - 作者自2010年1月以来未对任何消息做出回应)。这意味着如果遇到问题,你就可以自己动手了。要获得所述问题的解决方案,Google就是您的朋友。



使用我提到的两个替代方案,您可以使用更大的现有用户群而不是明显不受支持的代码集。
The user should be able to unpin the form and then drag it to the 2nd monitor. Have you tried that?

EDIT =====================

If the library doesn't do what you want/need, there are several others available. One such alternative is Dock Panel Suite. It's claim to fame is that it mim9ics the Visual Studio window docking interface, and it's available with NuGet. Try that and see how it works for you. Another alternative is Avalon Dock on CodePlex (and maybe also available in NuGet).

The problem with using someone else's (free) code is that it is quite possibly in a state that is best described as "abandoned" (for example, the code you're trying to use - the author hasn't responded to any messages since January 2010). That means you're on your own if you run into problems. To get a resolution for said problem, google is your friend.

With the two alternatives I mentioned, you have a larger existing user base to draw from rather than an obviously unsupported code set.


这篇关于C#将表单从停靠容器移动到第二个屏幕监视器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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