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: