다음을 통해 공유


Control.CreateHandle 메서드

컨트롤의 핸들을 만듭니다.

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

구문

‘선언
Protected Overridable Sub CreateHandle
‘사용 방법

Me.CreateHandle
protected virtual void CreateHandle ()
protected:
virtual void CreateHandle ()
protected void CreateHandle ()
protected function CreateHandle ()

예외

예외 형식 조건

ObjectDisposedException

개체가 삭제된 상태인 경우

설명

일반적으로 CreateHandle 메서드는 직접 호출하면 안 됩니다. 기본 메서드는 CreateControl 메서드를 호출하여 컨트롤이 만들어졌을 때 컨트롤 및 해당 자식 컨트롤에 대한 핸들을 강제로 만드는 것입니다.

상속자 참고 사항 파생 클래스에서 CreateHandle를 재정의하는 경우 핸들을 만들 수 있도록 기본 클래스의 CreateHandle 메서드를 호출해야 합니다.

.NET Framework 보안

  • UIPermission  상속하는 클래스의 모든 창에서 이 메서드를 호출하는 데 필요한 권한입니다. 연관된 열거형: UIPermissionWindowAllWindows

플랫폼

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에서 지원

참고 항목

참조

Control 클래스
Control 멤버
System.Windows.Forms 네임스페이스
CreateControl
CreateParams
DestroyHandle
Handle
IsHandleCreated
OnHandleCreated
RecreateHandle
RecreatingHandle
UpdateStyles