Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过 KeyDown 事件编辑图形文本(不是 TextBox 控件)。我需要根据 KeyEventArgs(键值和修饰符)更新我的文本字符串。我现在使用法语键盘,但将来我想支持不同的键盘布局。我如何根据键值、修饰符和文化信息猜测键入的字符?
出于技术原因,我不想使用 KeyPress 事件。
KeyPress 是处理文本输入的最佳方式。