Click here to Skip to main content
11,796,275 members (76,149 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 7: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 Maciej Los 460
1 Abhinav S 368
2 OriginalGriff 340
3 CPallini 269
4 Sergey Alexandrovich Kryukov 252
0 OriginalGriff 2,012
1 Maciej Los 1,615
2 KrunalRohit 1,310
3 CPallini 1,015
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web01 | 2.8.151002.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