Answers for "how to delete controls c#"

C#
0

clear controls from panel c#

//to remove all comboboxes
    foreach (Control item in panel1.Controls.OfType<ComboBox>())
    {
        panel1.Controls.Remove(item); 
    }
Posted by: Guest on October-25-2020
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

Code answers related to "how to delete controls c#"

C# Answers by Framework

Browse Popular Code Answers by Language