I have a usercontrol that inherits from the UserControl class. There are a bunch of items that I want to hide from those who use the class.
I can hide the properties just fine ...
public partial class userControls_MyControl : System.Web.UI.UserControl {
private new bool EnableTheming {get; set;}
}
This effectively removes it from display in the IntelliSense editor.
However, when I try to do the same with events, they still appear ...
public partial class userControls_MyControl : System.Web.UI.UserControl {
private new EventHandler AbortTransaction { get; set; }
private new EventHandler OnAbortTransaction {get;set;}
}
Is there any way to hide the event? Why is this not working?
Thanks in advance.
source
share