Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,

I created a button in the user control and hide properties with this code :
C#
[Browsable(false)]
public override bool AutoScroll
{
    get { return base.AutoScroll; }
    set { base.AutoScroll = value; }
}


But, I can not hide GenerateMember, Locked And Modifiers property...

please help me..
Posted

1 solution

The GenerateMember, Locked and Modifiers properties are design-time only properties. They are listed in the Properties-page among the real properties but they are actually only used by the Form Designer / Visual Studio. So there simply is no class-property that could be hidden like you did with AutoScroll.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900