📜  从控件列表中删除所有控件 vb.net - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:53.795000             🧑  作者: Mango

代码示例2
Private Sub ClearControls()
    'removing the controls from Me.Controls
    Me.SuspendLayout()
    For Each Control As Control In ListToDelete
        Me.Controls.Remove(Control)
    Next
    Me.ResumeLayout()
    ListToDelete = New List(Of Control)
End Sub