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

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 14  |  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. How to set a label equal to a textbox, with every letter on a separate line?
  2. label1.Text = String.Empty;
  3.  
  4.         foreach (char c in textBox1.Text)
  5.         {
  6.             label1.Text += c + Environment.NewLine;
  7.         }