Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Changing WinForms TextBox to BorderStyle.None causes text to be cut off
  2. public Form2()
  3. {
  4.     InitializeComponent();
  5.     textBox1.Multiline = true;
  6.     textBox1.MinimumSize = new Size(0, 30);
  7.     textBox1.Size = new Size(textBox1.Size.Width, 30);
  8.     textBox1.Multiline = false;
  9. }
  10.        
  11. public class TextBoxEx : TextBox {
  12.  
  13.   public TextBoxEx() {
  14.     base.AutoSize = false;
  15.   }
  16.  
  17. }