delete all controls from list of control vb.net
For Each control As Control In MyListOfControls
control.Dispose()
Next
delete all controls from list of control vb.net
For Each control As Control In MyListOfControls
control.Dispose()
Next
delete all controls in an area vb
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us