找尋 係 Windows Form 上有指定 name 既 Controls

 
找尋 係 Windows Form 上有指定 name 既 Controls
 

   form1.vb
 
   Private Sub FindControl()
 
      Dim B() As System.Windows.Forms.Control = _
      Me.Controls.Find("LabelB", True)
      B(0).Text = "B"
 
      Dim D() As System.Windows.Forms.Control = _
      Me.Controls.Find("LabelD", True)
      D(0).Text = "D"
 
   End Sub