15 lines
308 B
C#
15 lines
308 B
C#
|
using System;
|
||
|
using System.Linq;
|
||
|
using System.Windows.Forms;
|
||
|
|
||
|
namespace DualScreenDemo
|
||
|
{
|
||
|
|
||
|
public static class ScreenHelper
|
||
|
{
|
||
|
public static Screen GetSecondMonitor()
|
||
|
{
|
||
|
return Screen.AllScreens.FirstOrDefault(s => !s.Primary) ?? Screen.PrimaryScreen;
|
||
|
}
|
||
|
}
|
||
|
}
|