Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4614280
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:40:33+00:00 2026-05-22T01:40:33+00:00

What parameter has controls.remove() method in winforms? I want to remove some element from

  • 0

What parameter has controls.remove() method in winforms? I want to remove some element from a form. What should I pass into the remove method – its id or something else?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:40:34+00:00Added an answer on May 22, 2026 at 1:40 am

    The controls property is a Control.ControlCollection. To remove a control from this collection, you need to pass in an instance of the control you want to remove.

    The MSDN docs has an example:

    private void removeButton_Click(object sender, System.EventArgs e)
    {
       if (panel1.Controls.Contains(removeButton))
       {
          panel1.Controls.Remove(removeButton);
       }
    }
    

    To answer the question in your comment:

    You cannot remove it by its id or name, but you can find the instance of your control by passing its name into the Find method on the Controls property. This returns as array of all controls that have the specified name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The TextRenderer.DrawText method has a TextFormatFlags parameter. Using TextFormatFlags.EndEllipsis allows you to abbreviate the
the window.open() object has some funky parameter list... is there a way to do
Constructor for PHP's exception has third parameter, documentation says: $previous: The previous exception used
I have an sql query that has a parameter that can be null in
I have a function written in C# which has one parameter type as Dictionary<string
You'd like to call a stored proc on MS SQL that has a parameter
I have a DataGridView and handle event CellFormatting. It has a parameter called: DataGridViewCellFormattingEventArgs
Has the $format parameter been removed with the VS2008 SP1 release of ADO.NET Data
Socket has a constructor that takes a winsock SOCKET as parameter and stores it
Is there any compiler that has a directive or a parameter to cast integer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.