Click here to Skip to main content
11,489,693 members (71,790 online)
Rate this: bad
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
SAKryukov at 1-Dec-11 13:16pm
What does it mean: "display events"? Help with what? Any code sample?
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
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.
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 Sergey Alexandrovich Kryukov 530
1 OriginalGriff 238
2 Maciej Los 190
3 Andy Lanng 183
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,488
1 OriginalGriff 8,425
2 Sascha Lefèvre 3,344
3 Maciej Los 3,066
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 1 Dec 2011
Copyright © CodeProject, 1999-2015
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