https://docs.microsoft.com/ko-kr/dotnet/api/system.windows.forms.form.keypreview?view=netframework-4.8

 

Form.KeyPreview Property (System.Windows.Forms)

--> Form.KeyPreview Form.KeyPreview Form.KeyPreview Form.KeyPreview Property 정의 이 문서의 내용 포커스가 있는 컨트롤에 이벤트가 전달되기 전에 폼이 키 이벤트를 받을지 여부를 나타내는 값을 가져오거나 설정합니다.Gets or sets a value indicating whether the form will receive key events before the event is passed to

docs.microsoft.com

적절한 곳에 KeyPreview = true; 하면 키가 동작하기 시작함..

(저는 키다운 받는 코드 전에 넣었음)

+ Recent posts