首页 > TAG信息列表 > WorkingArea

C# Screen类实现多屏显示

private void ShowOnMonitor(int monitor, Window window) { window.WindowStyle = WindowStyle.None; window.WindowStartupLocation = WindowStartupLocation.Manual; System.Windows.Forms.Screen[] screens = System.Window

C#小工具 ---- 倒计时自动关机小工具

上图 public partial class Form1 : Form { private DateTime StartTime; private const int hours = 0; private const int minutes = 30; private const int sec = 0; private TimeSpan sCountdown = new TimeSpan(hours, min

C# 桌面右下角显示窗体

  public Form1() { InitializeComponent(); //桌面窗口区宽减自身宽,高减自身高 int x = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - this.Size.Width; int y = System.Wi