如何禁用用户控制事件并仅显示自己的事件? [英] How to disable the user control events and appears your own events only?

查看:81
本文介绍了如何禁用用户控制事件并仅显示自己的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人
我正在设计一个数字文本框用户控件,但是现在我遇到了一个问题,那就是当我将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.


这篇关于如何禁用用户控制事件并仅显示自己的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆