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.
我有一个空面板,我将控件动态加载到其中,但遇到了问题。
事情是; 我希望能够使用鼠标滚轮滚动,我通过使用 panel.Focus(); 解决了这个问题;用控件加载它之后。
但是,现在,我还希望能够检测到 keydown,以便能够使用 F5 键刷新整个内容,不幸的是,由于面板已聚焦,我的表单无法检测到我的 Keydown 事件,并且该面板似乎没有自己的 keydown 事件。
有什么建议么?