Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Returns the number of display monitors available
 /// </summary>
 /// <returns></returns>
 public static int GetDisplayCount()
 {
     return(SystemMetrics.GetSystemMetric(SystemMetric.Monitors));
 }