Text property in a UserControl in C#

前端 未结 3 1223
既然无缘
既然无缘 2020-11-30 05:46

I have a control with a inner TextBox. I want to make a direct relationship between the Text property of the UserControl and the Text property of the TextBox. The first thin

3条回答
  •  情深已故
    2020-11-30 06:20

    For serialization within the InitializeComponent(), all you need is the DesignerSerializationVisibilityAttribute:

    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    

提交回复
热议问题