我有以下麻烦,我找不到解决方案.
我想实现一个没有顶栏的Winform,如果可能的话,没有边框.我尝试了几件事但没有成功,以下是完美的诀窍:
this.Text = string.Empty;
this.ControlBox = false;
this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
Run Code Online (Sandbox Code Playgroud)
产生以下结果:
小问题是当我或用户触发最大化状态时,因为将使表单进入FULLSCREEN模式!我不知道如何防止这种情况:
看到?你看不到windows任务栏!我正在使用
WindowState = FormWindowState.Maximized; // Makes a fullscreen that i dont want !
Run Code Online (Sandbox Code Playgroud)
感谢您的帮助 !