Hide Member In Object Explorer
-
Back in my Visual FoxPro days there were attributes that you could attach to a class member to hide it from the object explorer. Is this possible in .Net? If so, how? Thank you
If it's not broken, fix it until it is
-
Back in my Visual FoxPro days there were attributes that you could attach to a class member to hide it from the object explorer. Is this possible in .Net? If so, how? Thank you
If it's not broken, fix it until it is
I don't think you can hide members from the object explorer, but you can use the
EditorBrowsable
attribute[^] to suggest that members should be hidden in the intellisense list.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
I don't think you can hide members from the object explorer, but you can use the
EditorBrowsable
attribute[^] to suggest that members should be hidden in the intellisense list.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Ya I'v seen that. However, this HAS to be possible. Take a looks at a Microsoft or third party assembly. You don't see any private members listed.
If it's not broken, fix it until it is
-
Ya I'v seen that. However, this HAS to be possible. Take a looks at a Microsoft or third party assembly. You don't see any private members listed.
If it's not broken, fix it until it is
-
The Object Browser
If it's not broken, fix it until it is
-
The Object Browser
If it's not broken, fix it until it is
That's a property-grid control :)
"A visual designer typically displays in the Properties window those members that either have no browsable attribute or are marked with the BrowsableAttribute constructor's browsable parameter set to true. These members can be modified at design time. Members marked with the BrowsableAttribute constructor's browsable parameter set to false are not appropriate for design-time editing and therefore are not displayed in a visual designer. The default is true."
http://msdn.microsoft.com/en-us/library/system.componentmodel.browsableattribute(v=vs.110).aspx[^]
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
That's a property-grid control :)
"A visual designer typically displays in the Properties window those members that either have no browsable attribute or are marked with the BrowsableAttribute constructor's browsable parameter set to true. These members can be modified at design time. Members marked with the BrowsableAttribute constructor's browsable parameter set to false are not appropriate for design-time editing and therefore are not displayed in a visual designer. The default is true."
http://msdn.microsoft.com/en-us/library/system.componentmodel.browsableattribute(v=vs.110).aspx[^]
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
No it's not. View Menu, Object Browser
If it's not broken, fix it until it is
-
No it's not. View Menu, Object Browser
If it's not broken, fix it until it is
I stand corrected, that's a whole editor. Don't know of any separate attributes to hide them, but the only place they'd be visible is to a developer. If you know of any class that can, that you can decompile the code using some freeware like Ilspy.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
I stand corrected, that's a whole editor. Don't know of any separate attributes to hide them, but the only place they'd be visible is to a developer. If you know of any class that can, that you can decompile the code using some freeware like Ilspy.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
I am also mistaken. I created a simple class with both Public and Private members. Only the public and Protected members showed up. Problem solved.
If it's not broken, fix it until it is