Typing only non null fields?
<pre><code>string[] lines = { textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text };
Random RandString = new Random();
string text = lines[RandString.Next(0, lines.Length)];
SendKeys.SendWait(text);
</code></pre>

<p>How can I select textBox's with text inside of them? I was trying to sort the data <code>string[] lines</code> into a new <code>string[] hasText</code>  but I'm unsure how to go about checking if the textBox has text inside of it.</p>

<p>If the textBox field is null it will still process through RandString and SendKeys will try to type it out.  How can I fix this?</p>

<p>Thanks.</p>
