开发者

C# Visual Studio 2008 NumericUpDown PopUp Menu Removal

开发者 https://www.devze.com 2022-12-25 01:40 出处:网络
MenuPic Greetings. I am using the NumericUpDown control on my app开发者_JAVA百科lication. When I right click mouse on any of these controls the popup menu shows up as displayed in the above link.

MenuPic

Greetings. I am using the NumericUpDown control on my app开发者_JAVA百科lication. When I right click mouse on any of these controls the popup menu shows up as displayed in the above link.

How do I remove this menu please?

Thanks.


You can assign an empty context menu to the controls

ContextMenu contextMenu = new ContextMenu();
this.numericUpDown1.ContextMenu = contextMenu;
this.numericUpDown2.ContextMenu = contextMenu;
0

精彩评论

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