I can override the Name property when the property is public but when I set it private it inherits Picturebox's Name. I want to make it private because I don't want this property to be shown in the objects that generated from MyPictureBox class. Thanks.
class MyPictureBox : PictureBox
{
private string name;
private new string Name
{
get { return name; }
set { name = value; }
}
}