How to handle Form caption right click

后端 未结 6 899
感情败类
感情败类 2021-01-07 10:09

I\'d like a context menu on the caption bar right click

any tips/samples pref in c# ?

UPDATE - for various reasons, right click on the form won\'t work becau

6条回答
  •  情书的邮戳
    2021-01-07 10:49

    There is already a menu managed by Windows when you right-click the titlebar.

    Do you want to replace it completely?

    If you want to add to it you will have to use the Win32 API and interop and you will have to subclass the form.

    See the AppendMenu() function.

提交回复
热议问题