DataNavigatorOnCreateControl 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: 2023.4.9.0
protected override void OnCreateControl()

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.

See Also