分辨率:
宽(Screen.PrimaryScreen.Bounds.Width)× 高(Screen.PrimaryScreen.Bounds.Height)

解决方案 »

  1.   


    C#中改变显示器的分辨率
    http://www.truemesky.com/ReadNews.asp?NewsID=488&BigClassName=%B3%CC%D0%F2%C9%E8%BC%C6&SmallClassName=VC/C%A3%A3%D3%EF%D1%D4&SpecialID=0
      

  2.   

    获得屏幕刷新率
    using System;
    using System.Runtime.InteropServices;
    namespace ConsoleApplication
    { public sealed class EntryPoint
    {
    private EntryPoint(){} [DllImport("Gdi32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
    public static extern int GetDeviceCaps(IntPtr hDC,int nIndex); /// <summary>
    /// 获得屏幕刷新率
    /// </summary>
    public static int RefreshRate
    {
    get
    {
    IntPtr desktopDC = GetDC(GetDesktopWindow());
    return GetDeviceCaps(desktopDC,116);
    }
    } [DllImport("User32.dll")] 
    public extern static IntPtr GetDesktopWindow();   [DllImport("User32.dll")]
    public static extern IntPtr GetDC(IntPtr hWnd); static void Main()
    {
    Console.WriteLine("屏幕刷新率为: {0}Hz",RefreshRate);
    Console.ReadLine();
    }
    }
    }
      

  3.   

    用managed DirectX可以直接调类库实现
    不过好像杀鸡用牛刀了 ~_~# !!
      

  4.   

    Managed DirectX 还未普及