none
c# 启动多个不同 winform 程序时,让他们在直接分别显示在指定屏幕上(一机 4 屏) RRS feed

  • 问题

  • 我这有 5 个程序,在一台主机里。A 程序负责给另外 4 个发命令,发完即可最小化,一般就放在主屏上显示。另外 4 个程序要分别显示在 4 个显示器上。现在想达成的目标是,把 5 个程序写进一个启动项,点击这个启动项,A 程序和 B 程序在主屏,另外 3 个程序直接分布到另外 3 个屏幕中并最大化。
      这个功能应该是属于写在 C# 程序里来实现,还是说靠 windows 实现?
    2017年8月25日 9:07

答案

  • 您应该说的是如何控制程序在多个显示器中呈现

    找到一些帮助信息供您参考

    https://www.codeproject.com/articles/6471/multi-monitor-programming-in-c

    https://social.msdn.microsoft.com/Forums/windows/en-us/6d1c2ed1-591e-4ea5-bda9-7d380ebd1f2e/how-to-use-multiple-monitors-in-c?forum=winforms

    https://stackoverflow.com/questions/5215001/multiple-monitors-in-net

    Windows doesn't care how the screens are distributed across video adapters. It simply gives each screen its own coordinates, depending how you arrange them in the Display applet. You get your window to display on a specific one by setting its location and size to fit inside the Screen.Bounds

    https://www.codeproject.com/Articles/546006/Screen-Capture-on-Multiple-Monitors

    Screen Capture on Multiple Monitors


    专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms


    2017年8月28日 0:07

全部回复

  • >>这个功能应该是属于写在 C# 程序里来实现,还是说靠 windows 实现?

    没有完全明白你的意思:什么叫“Windows实现”,你指“Windows API”吗?


    Reproduce your quesions with   ScreenToGif is your choice.
    For IIS: IIS Forum,
    For WebSite of .NET, ASP.NET Forum,
    For others, StackExchange
    For spam-sender or forum urgent issues, Send your Email at: forumsfeedback@microsoft.com

    2017年8月26日 2:31
    版主
  • 您应该说的是如何控制程序在多个显示器中呈现

    找到一些帮助信息供您参考

    https://www.codeproject.com/articles/6471/multi-monitor-programming-in-c

    https://social.msdn.microsoft.com/Forums/windows/en-us/6d1c2ed1-591e-4ea5-bda9-7d380ebd1f2e/how-to-use-multiple-monitors-in-c?forum=winforms

    https://stackoverflow.com/questions/5215001/multiple-monitors-in-net

    Windows doesn't care how the screens are distributed across video adapters. It simply gives each screen its own coordinates, depending how you arrange them in the Display applet. You get your window to display on a specific one by setting its location and size to fit inside the Screen.Bounds

    https://www.codeproject.com/Articles/546006/Screen-Capture-on-Multiple-Monitors

    Screen Capture on Multiple Monitors


    专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms


    2017年8月28日 0:07
  • Hi,

    感谢你在MSDN论坛发帖。

    如果你是想用windows 的API来实现multiple view,你可以看一下

    Multiple Display Monitors Functions

    Best Regards,

    Hart


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    2017年8月28日 7:06
    版主
  • 任何一种的设计都离不开程序的本身,这问题的范围有点广,如果你有实际的专案建制后,有实际的状况并且说明出现问题的地方,比较容易找到问题的本身,因为你提出的问题看起来像是流程。
    2017年8月31日 9:02