How do I get the WinForm Designer to totally ignore a property on a custom control?

后端 未结 1 1652
感动是毒
感动是毒 2020-12-09 17:22

This must be a FAQ, but I can’t find a duplicate question!

There are lot of different attributes that control what the WinForm Designer does with properties

相关标签:
1条回答
  • 2020-12-09 18:08

    I think you can use [Browsable (false)] and [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]

    The second attribute prevents the property from appearing in InitializeComponent

    0 讨论(0)
提交回复
热议问题