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.
我正在寻找一种将键发送到控件(在我的表单上,现在正在执行 SendKeys.Send())而不将窗口设置为焦点窗口的方法。SendKeys.Send() 的主要问题是,在调试时密钥转到 VisualStudio。我必须发送密钥的控件位于我的表单上。我问我,有没有办法直接“送”他们一把钥匙?