다음을 통해 공유


Form.ControlCollection.Remove 메서드

폼에서 컨트롤을 제거합니다.

네임스페이스: System.Windows.Forms
어셈블리: System.Windows.Forms(system.windows.forms.dll)

구문

‘선언
Public Overrides Sub Remove ( _
    value As Control _
)
‘사용 방법
Dim instance As ControlCollection
Dim value As Control

instance.Remove(value)
public override void Remove (
    Control value
)
public:
virtual void Remove (
    Control^ value
) override
public void Remove (
    Control value
)
public override function Remove (
    value : Control
)

매개 변수

  • value
    폼에서 제거할 Control입니다.

설명

이 메서드를 사용하면 폼에 필요하지 않은 컨트롤을 제거할 수 있습니다. 제거한 컨트롤을 다시 표시하려면 Add 메서드를 사용하여 폼에 컨트롤을 다시 추가해야 합니다. 폼에는 남아 있으나 표시되지 않게 하려면 컨트롤의 Visible 속성을 사용합니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

Form.ControlCollection 클래스
Form.ControlCollection 멤버
System.Windows.Forms 네임스페이스
Add