如何删除窗体的任务栏以避免在Windows应用程序中拖移 [英] How to remove the taskbar of a form to avoid dragging off in windows application
本文介绍了如何删除窗体的任务栏以避免在Windows应用程序中拖移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何删除窗体的任务栏以避免在Windows应用程序中拖出?
How to remove the taskbar of a form to avoid dragging off in windows application?
推荐答案
设置 ^ ]到 ^ ]
另一种方法是(如果您希望保留边框):
-清除表单的文本属性
-将MinimizeBox设置为false
-将MaximizeBox设置为false
-将ControlBox设置为false
Another way is to (if you want the borders to remain):
- Clear the text property of the form
- Set MinimizeBox to false
- Set MaximizeBox to false
- Set ControlBox to false
Sform.FormBorderStyle = FormBorderStyle.None;
这段代码有效.谢谢.
Sform.FormBorderStyle = FormBorderStyle.None;
This code works.Thanks.
这篇关于如何删除窗体的任务栏以避免在Windows应用程序中拖移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文