且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何隐藏XNA 4.0吗?

更新时间:2023-12-06 14:22:10

在System.Windows.Form refrence添加到项目中,然后添加使用说明书:

add the System.Windows.Form refrence to the project and then add the using statment:

using System.Windows.Forms;



然后在初始化方法补充一点:

and then add this in the Initialize method:

Form MyGameForm = (Form)Form.FromHandle(Window.Handle);
            MyGameForm.FormBorderStyle = FormBorderStyle.None;



编辑:
mybee与不透明播放

mybee the playing with the opacity

 Form MyGameForm = (Form)Form.FromHandle(Window.Handle);
        MyGameForm.Opacity = 0;