79812532

Date: 2025-11-07 15:58:05
Score: 2
Natty:
Report link

I'm confused. When adding a new property, I thought the foremost thing to do is to determine the type of property. In User Control - Custom Properties someone suggested this:

[Browsable(true), EditorBrowsable(EditorBrowsableState.Always), Bindable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public override string Text {
  get { return textBox1.Text; }
  set { textBox1.Text = value; }
}

So the new property is named "Text" and comes from a text box, but where is this text box? I mean, I don't want to add a combobox as object to my user control, I want to create property like this:

enter image description here

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MaSta