Hi,
I want ot add a multi-line text box to the form, How do i add a component like that?
TY in Advance
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
jingeRank #2,527 · 554 reputationPosted Sep 25, 2009, 10:51 PM EDT
Master BillaRank #2,229 · 630 reputationPosted Sep 25, 2009, 7:58 PM EDT
You can add easily
Add textbox to your form and then set MiltiLine property true to text box
that's all it will work for you.
thank you
Roei BarRank #1,271 · 1.4K reputationPosted Sep 25, 2009, 9:49 PM EDT
private void CreateMyMultilineTextBox() { // Create an instance of a TextBox control. TextBox textBox1 = new TextBox(); // Set the Multiline property to true. textBox1.Multiline = true; // Add vertical scroll bars to the TextBox control. textBox1.ScrollBars = ScrollBars.Vertical; // Allow the RETURN key to be entered in the TextBox control. textBox1.AcceptsReturn = true; // Allow the TAB key to be entered in the TextBox control. textBox1.AcceptsTab = true; // Set WordWrap to True to allow text to wrap to the next line. textBox1.WordWrap = true; // Set the default text of the control. textBox1.Text = "Welcome!"; }petre ricardo155 reputationPosted Sep 25, 2009, 10:04 PM EDT