I've created a UserControl. Let's imagine that code:
public class MyUserControl : UserControl
{
Button button1;
Button button2;
//...
}
With that UserControl i can click on one of the buttons and this fires some events (Button1Clicked
, Button2Clicked
).
Now with the UserControl there are some other events, but i never use that events like MouseMove
or Dragging (DragEnter
, DragLeave
, DragOver
, ...). Intellisense shows a huge list of events that are useless in my UserControl.
Is there a common way to hide those inherited events? My main reason is intellisense but also documentation (XML-summaries).