/// <summary> /// /// </summary> /// <returns></returns> public static Point GetVirtualScreenTopLeftPoint() { int x = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenX); int y = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenY); Point point = new Point(x, y); return(point); }
/// <summary> /// /// </summary> /// <returns></returns> public static Size GetVirtualScreenSize() { int width = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenWidth); int height = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenHeight); Size size = new Size(width, height); return(size); }
/// <summary> /// Returns the number of display monitors available /// </summary> /// <returns></returns> public static int GetDisplayCount() { return(SystemMetrics.GetSystemMetric(SystemMetric.Monitors)); }