如何禁用用户控制事件并仅显示自己的事件?

编程入门 行业动态 更新时间:2024-10-25 13:16:24
本文介绍了如何禁用用户控制事件并仅显示自己的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的所有人 我正在设计一个数字文本框用户控件,但是现在我遇到了一个问题,那就是当我将NumTextBox添加到表单中并且想要打开事件组合框时,我发现了UserControl事件和我自己的事件. > 我只想显示自己的事件,我不想显示UserControl事件. 有人可以帮我吗?

Dear all I am designing a numerical text box user control, but now I have a problem, it is when I add my NumTextBox to the form and I want to open the events combo box, I found the UserControl events and my own events. I want to display my own events only, I don''t want to display the UserControl events. Can anybody help me please?

推荐答案

在对象中定义为受保护或公共的任何内容都可以在智能感知中看到.除此之外,您不一定要更改受保护或公共方法的可访问性,因为-很好-将它们公开或受保护更有意义. Anything defined as protected or public in an object will be visible in intellisense. Beyond that, you don''t necessarily want to change the accessibility of protected or public methods because - well - it makes more sense for them to be public or protected.

更多推荐

如何禁用用户控制事件并仅显示自己的事件?

本文发布于:2023-10-30 04:00:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1541696.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自己的   事件   用户

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!