所以我要在Visual Studio C#上做一个游戏,我希望表单能够
编译时自动最大化到任何用户的计算机屏幕?
我怎样才能做到这一点?
最佳答案
您可以使用以下方法之一进行操作:
int height = Screen.PrimaryScreen.Bounds.Height;
int width = Screen.PrimaryScreen.Bounds.Width;
关于c# - 如何在Windows窗体应用程序中使窗体最大化到任何计算机屏幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2955061/