4
我知道P/invoke可以,但是有没有管理方式?如何在c#中没有最大/最小/关闭按钮的情况下创建表单?
我知道P/invoke可以,但是有没有管理方式?如何在c#中没有最大/最小/关闭按钮的情况下创建表单?
您应该能够切换ControlBox
属性。
public void CreateMyBorderlessWindow()
{
this.FormBorderStyle = FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.StartPosition = FormStartPosition.CenterScreen;
// Remove the control box so the form will only display client area.
this.ControlBox = false;
}
是的......只要禁用窗体属性上的控件框即可。
很酷。永远不知道这个属性的含义。 – Benny 2009-12-04 09:28:23