Ctrl + a 의 경우 해당 component에 KeyDown event로써 발생하게 되어 있다.
다음과 같은 EventHandler를 등록 시키면 사용이 가능하다.
1 2 3 4 5 6 7 8 9 10 11 | private void textBox_KeyDown(object sender, KeyEventArgs e) { if (e.Control) { if (e.KeyCode == Keys.A) { this.textBoxPlainText.Focus(); this.textBoxPlainText.SelectAll(); } } } |
'Windows Programming > WPF' 카테고리의 다른 글
ListView에서 Item 선택시 선택배경색 없애기 (0) | 2016.08.08 |
---|---|
Listbox 선택시 Listview의 Scroll이 자동으로 이동되는 문제 (0) | 2016.08.08 |
Drag and Drop Files 구현 (0) | 2014.05.27 |