C# - Why won't a fullscreen winform app ALWAYS cover the taskbar?

后端 未结 5 586
名媛妹妹
名媛妹妹 2020-12-31 01:45

I\'m using Windows Vista and C#.net 3.5, but I had my friend run the program on XP and has the same problem.

So I have a C# program that I have running in the backgr

5条回答
  •  既然无缘
    2020-12-31 02:02

    Try this (where this is your form):

    this.Bounds = Screen.PrimaryScreen.Bounds;
    this.TopMost = true;
    

    That'll set the form to fullscreen, and it'll cover the taskbar.

提交回复
热议问题