Question : delete all controls in an area vb
Answered by : joel-cunningham
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
Source : https://stackoverflow.com/questions/12622329/removing-a-collection-of-controls | Last Update : Sun, 26 Jul 20