大家都知道现在很多游戏都是全屏游戏我希望能在其它程序占用了全屏幕的情况下  在它上面(屏幕上)显示一些数据请问C#能不能做到呢

解决方案 »

  1.   

    用XNA吧调用DX画研究一下在别的程序采用了全屏独占模式下,你怎么才能去抢它的全屏并且还不干扰它...
      

  2.   

    把一个窗边设置为None,然后最大后就是全屏的了,你想画什么都可以,比如:
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    this.FormBorderStyle = FormBorderStyle.None;
    this.WindowState = FormWindowState.Maximized;
    }
    protected override void OnPaint(PaintEventArgs e)
    {
    base.OnPaint(e);
    using (StringFormat format = new StringFormat())
    {
    format.LineAlignment = StringAlignment.Center;
    format.Alignment = StringAlignment.Center;
    e.Graphics.DrawString("全屏测试!", this.Font, SystemBrushes.ControlText, this.ClientRectangle, format);
    }
    }
    }