ComponentFactory.Krypton.Toolkit.KryptonDateTimePickerDesigner.OnDateTimePickerDoubleClick C# (CSharp) Method

OnDateTimePickerDoubleClick() private method

private OnDateTimePickerDoubleClick ( object sender, Point pt ) : void
sender object
pt Point
return void
        private void OnDateTimePickerDoubleClick(object sender, Point pt)
        {
            // Get any component associated with the current mouse position
            Component component = _dateTimePicker.DesignerComponentFromPoint(pt);

            if (component != null)
            {
                // Get the designer for the component
                IDesigner designer = _designerHost.GetDesigner(component);

                // Request code for the default event be generated
                designer.DoDefaultAction();
            }
        }