How do I hide some of the default control properties at design-time (C#)?

后端 未结 4 797
情深已故
情深已故 2021-01-04 10:56

I have a custom control that I made. It inherits from System.Windows.Forms.Control, and has several new properties that I have added. Is it possible to show m

4条回答
  •  暖寄归人
    2021-01-04 11:36

    You are looking for design-time attributes, specifically the BrowsableAttribute. DefaultPropertyAttribute sets which property is the default one to edit.

提交回复
热议问题