I have a Windows Form user control with a string property to set the text of a text field. This line can be multi-line.
I noticed that on some controls with a text property, and instead of having to enter a text field with a single line, you pop up a little where you can enter multiple lines. (Essentially, the Windows Forms TextBox control allows this in the Text property.)
How to enable this functionality in the properties window for a property that I developed?
There is no real code in my application, but an example of how such a property can be defined
public string Instructions { get { return TextBox1.Text; } set { TextBox1.Text = value; } }
c # visual-studio-2008 windows-forms-designer
David
source share