Click here to Skip to main content
15,894,050 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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?
Posted
Comments
Sergey Alexandrovich Kryukov 1-Dec-11 13:16pm    
What does it mean: "display events"? Help with what? Any code sample?
--SA
#realJSOP 1-Dec-11 14:07pm    
I think he means in intellisense.
fadi77_net 1-Dec-11 14:42pm    
I mean, when you open the code view, you will find two combo boxes at the upper of the code editor, the right combo box is the event combo box.
the event combo box appears the UserControl events, I don't want to allow to display it, I want to display my own events only in the events combo box.

1 solution

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.
 
Share this answer
 
Comments
fadi77_net 1-Dec-11 15:06pm    
Can you give me an example please?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900