Creates a window handle for this window.
[Visual Basic] Overridable Public Sub CreateHandle( _ ByVal cp As CreateParams _ ) [C#] public virtual void CreateHandle( CreateParams cp ); [C++] public: virtual void CreateHandle( CreateParams* cp ); [JScript] public function CreateHandle( cp : CreateParams );
The cp parameter specifies the values that are passed to the Microsoft.Win32.Interop.Windows.CreateWindowEx API method to create a window and its handle.
When the className field is not a null reference (in Visual Basic Nothing), the newly created window handle will inherit from the specified class. For example, if className is set to "BUTTON", the newly created window handle will inherit from Button. The param field of the className object must be either a null reference (Nothing) or reference an instance of a class that was declared using the @dll.struct directive.
NativeWindow Class | NativeWindow Members | System.WinForms Namespace | CreateParams | NativeWindow | Handle | AssignHandle | DestroyHandle | ReleaseHandle | WndProc