Enabling keyboard input on Forms

By default forms do not get keyboard input.

To allow keyboard input set the forms  KeyPreview property to true.

This will enable the firing of the  KeyDown and  KeyUp events.

Leave a Reply

Your email address will not be published. Required fields are marked *