开发者

How to show menu in borderless form in c#? [closed]

开发者 https://www.devze.com 2023-02-06 14:29 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

is it possible to开发者_运维问答 show menu in borderless form in c#. if yes tell me the way please.thanks


Yes. Set your Form.BorderStyle = None

This has no effect on your Menu.


In windows forms you will want to call the following:

FormBorderStyle = FormBorderStyle.None;

Although, when you do this, you will need to make your own MouseDown and MouseMove event handlers to move your form around, as well as code custom minimize and maximize functionality. If you need help with those I can aid you as well.

Good luck!

0

精彩评论

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