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

后端 未结 5 564
名媛妹妹
名媛妹妹 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:17

    Try resizing the form and bringing it to the front of the z-order like so:

            Rectangle screenRect = Screen.GetBounds(this);
            this.Location = screenRect.Location;
            this.Size = screenRect.Size;
            this.BringToFront();
    

提交回复
热议问题