delete all controls from list of control vb.net delete all controls in an area vb

The solution for “delete all controls from list of control vb.net delete all controls in an area vb” can be found here. The following code will assist you in solving the problem.

For Each control As Control In MyListOfControls

control.Dispose()

NextPrivate 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

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts