Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: User-controls VB.NET
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 1-Dec-11 8:06am
Comments
SAKryukov at 1-Dec-11 13:16pm
   
What does it mean: "display events"? Help with what? Any code sample?
--SA
   
I think he means in intellisense.
fadi77_net at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
fadi77_net at 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)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 1 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100