Control.FromChildHandle(IntPtr) 메서드

정의

지정된 핸들이 포함된 컨트롤을 검색합니다.

public:
 static System::Windows::Forms::Control ^ FromChildHandle(IntPtr handle);
public static System.Windows.Forms.Control FromChildHandle (IntPtr handle);
static member FromChildHandle : nativeint -> System.Windows.Forms.Control
Public Shared Function FromChildHandle (handle As IntPtr) As Control

매개 변수

handle
IntPtr

nativeint

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

반환

Control

지정된 핸들과 연결된 컨트롤을 나타내는 Control입니다. 지정된 핸들이 있는 컨트롤이 없으면 null을 반환합니다.

설명

이 메서드는 컨트롤과 연결된 핸들을 발견할 때까지 창 핸들 부모 체인을 검색합니다. 이 메서드는 둘 이상의 핸들을 소유한 컨트롤을 FromHandle 올바르게 반환하므로 메서드보다 더 안정적입니다.

적용 대상

추가 정보