DataNavigatorOnCreateControl Method
This is overridden to hook up an event for the hot key processing
Namespace: EWSoftware.ListControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected override void OnCreateControl()
Protected Overrides Sub OnCreateControl
protected:
virtual void OnCreateControl() override
abstract OnCreateControl : unit -> unit
override OnCreateControl : unit -> unit
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.