Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
菜单图片
问候。我在我的应用程序上使用 NumericUpDown 控件。当我在这些控件中的任何一个上单击鼠标右键时,弹出菜单将显示在上面的链接中。
请问如何去掉这个菜单?
谢谢。
您可以为控件分配一个空的上下文菜单
ContextMenu contextMenu = new ContextMenu(); this.numericUpDown1.ContextMenu = contextMenu; this.numericUpDown2.ContextMenu = contextMenu;