Data NavigatorOn Create Control Method
This is overridden to hook up an event for the hot key processing
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
protected override void OnCreateControl()VB
Protected Overrides Sub OnCreateControlC++
protected:
virtual void OnCreateControl() overrideF#
abstract OnCreateControl : unit -> unit
override OnCreateControl : unit -> unit Remarks
In order to find out when the hot keys are pressed, this control needs to handle the
KeyDown event in the parent form. This is overridden to hook that event and
turn on KeyPreview in the parent form the first time this control is created. It
cannot use OnParentChanged as the immediate parent may not be the form and it may not have a
parent itself when this control is added to it. This works around that problem.