title: Select a random button in Visual Basic
body: <p>So I have 9 buttons on my form , and when I press on a button I want to select one of the 9 buttons and change his text to - "random" . How can I do that in visual basic 2008/2010 ?</p>
  
  <p>I was thinking to something like</p>
  
  <pre><code> For Each buttons In Panel1.Controls
           If TypeName(buttons) = "Button" Then
                 //select a random button and change his text to "random"
            End If
   Next buttons
  </code></pre>