开发者

Hide Minimize Button in Windows Mobile

Is there a way (using C#) to hide and disable the min开发者_高级运维imize/close button?

I have a form that I use for login, and I would just rather they not be able to close the window.

Failing hiding the button, is there a way to catch that it was pressed and ignore/re-direct it?


Change the BorderStyle to None and make it the size of the screen. You can optionally draw in a "caption" area manually to make it look like there is a caption.


This ended up working:

this.MaximizeBox = false;
this.MinimizeBox = false;
this.ControlBox = false;
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;

It got rid of the whole title bar, but that is ok for my purposes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜