다음을 통해 공유


Control.FromChildHandle 메서드

지정된 핸들이 들어 있는 컨트롤을 검색합니다.

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

구문

‘선언
Public Shared Function FromChildHandle ( _
    handle As IntPtr _
) As Control
‘사용 방법
Dim handle As IntPtr
Dim returnValue As Control

returnValue = Control.FromChildHandle(handle)
public static Control FromChildHandle (
    IntPtr handle
)
public:
static Control^ FromChildHandle (
    IntPtr handle
)
public static Control FromChildHandle (
    IntPtr handle
)
public static function FromChildHandle (
    handle : IntPtr
) : Control

매개 변수

  • handle
    검색할 창 핸들(HWND)입니다.

반환 값

지정된 핸들과 연결된 컨트롤을 나타내는 Control입니다. 지정된 핸들이 들어 있는 컨트롤이 없으면 Null 참조(Visual Basic의 경우 Nothing)을 반환합니다.

설명

이 메서드는 컨트롤과 연결된 핸들을 찾을 때까지 창 핸들 부모 체인을 위로 검색합니다. 이 메서드는 둘 이상의 핸들이 들어 있는 컨트롤을 반환할 수 있으므로 이 메서드가 FromHandle 메서드보다 안정적입니다.

.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 네임스페이스
Handle
Parent