title: how to check if (c#) ControlCollection.Find() has returned a result
body: <p>I am using <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.find.aspx" rel="nofollow noreferrer">ControlCollection.Find()</a> method in C# to find some picture boxes present in my form.</p>
  <p>I am storing the returned result in a Control[] array. How do I find out if the Find() was successful or not???</p>
  <p>Code</p>
  <pre><code>Control[] temp = pictureBoxCollection.Find(TagNo, true);
  if(temp.Length&gt;0)
      UpdateRes = update_status(TagNo, Status);
  </code></pre>
  <p>where TagNo is a string containing the Control's exact name.</p>
  <p>Yes. I'm using the control's exact name. And I have used the Find() method successfully earlier (when the Control was surely present in the Collection). I am having a problem this time because the control may or may not be present in the Collection.</p>