Hi,
I am trying to manage (add, remove) properties within the property grid (or window) in VS 2005 c# , but I can't do it.
I read many forums, but none of them actually works.
I don't have any problems with adding new properties, but when i try to remove one from the property grid it won't disappear.
I tried the following:
[ Browsable(false)]
public new bool Enabled
{
get { return false; }
set { throw new NotSupportedException(".... does not support...."); }
}
And this way it will disapear. But if you noticed I got the "Enable" property from a different control by inheritance (from PictureBox in my case).
My scope is to completely disable the property. But if I make it private it will not disapear from the property grid, plus if you have an instance of my class you are still able to access this property ( instace.Enable is accessible)....
I don't know why...
Please help me, to completely remove this property so no one will be able to see it or access it in any way (don't want to be accessed from the property grid or the InteliSens)
Thank you
ps. Does someone know how to set InteliSense Quick Info message ?