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.
我在 winform (c#) 中使用属性网格。一旦用户在属性中输入一些值并按下Esc键将清除该值。我只是想防止Esc清除值(按 Esc 键应该什么都不做)。我试过PreviewKeyDown但没有得到任何线索。
Esc
PreviewKeyDown
任何想法?