在程序启动后如何获得窗体中所有控件的名称并显示在列表框中?
窗体上至少有ListBox和CommandBotton控件
Private Sub Command1_Click()
Dim i As Integer
For i = 0 To Me.Count - 1
'Print Me.Controls(i).Name, Me.Controls(i)
List1.AddItem Me.Controls(i).Name
Next i
End Sub