【问题标题】:Initiating editing on a PropertyGrid在 PropertyGrid 上启动编辑
【发布时间】:2009-07-21 18:21:02
【问题描述】:

我正在寻找一种以编程方式在 System.Windows.Forms.PropertyGrid 上启动编辑的好方法。我可以选择我想要的 GridItem,但这不会将光标移动到编辑字段中。

【问题讨论】:

    标签: .net winforms focus propertygrid


    【解决方案1】:

    您是否尝试发送 TAB 键?

    private void propertyGrid_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e)
    {
        SendKeys.Send("{TAB}");
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-10
      相关资源
      最近更新 更多