Answers for "delete all controls from list of control vb.net"

VBA
0

delete all controls from list of control vb.net

For Each control As Control In MyListOfControls

            control.Dispose()

        Next
Posted by: Guest on January-31-2021
0

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
Posted by: Guest on July-19-2020

Code answers related to "delete all controls from list of control vb.net"

Code answers related to "VBA"

Browse Popular Code Answers by Language