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.
我正在寻找一种以编程方式在 System.Windows.Forms.PropertyGrid 上启动编辑的好方法。我可以选择我想要的 GridItem,但这不会将光标移动到编辑字段中。
您是否尝试发送 TAB 键?
private void propertyGrid_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e) { SendKeys.Send("{TAB}"); }