title: Getting the number of text lines in a TextBox
body: <p>I am trying to display the number of  text lines in a textbox through the label.But, the thing is if the last line is empty, the label has to display the line numbers with out that empty line.</p>
  
  <p>For example if they are 5 line with the last line as empty, then the label should display the number of lines as 4.</p>
  
  <p>Thanks..</p>
  
  <pre><code>private void txt_CurrentVinFilter_EditValueChanged(object sender, EventArgs e)
  {
     labelCurrentVinList.Text = string.Format("Current VIN List ({0})",  txt_CurrentVinFilter.Lines.Length.ToString());                       
  }
  </code></pre>
  
  <p>Actually, above is the code...have to change to display only the no-empty lines in C# winforms.</p>
  
  <p>Thanks</p>