Form or UserControl cannot receive events such as KeyDown?

  When the Form contains custom controls or UserControls are nested, the outer objects will not receive KeyDown and other events. However, we can achieve the same effect by overriding the ProcessDialogKey method of the base class, for example:

        protected override bool  ProcessDialogKey( Keys  keyData)         { #region  PageDown if  (keyData  ==  Keys.PageDown)             {                             } #endregion return true ;         }       

            

            



            

            
 

 

 

<script type="text/javascript"> if ($ != jQuery) { $ = jQuery.noConflict(); } </script>

Guess you like

Origin blog.csdn.net/zhuweisky/article/details/5726300