【发布时间】:2013-07-19 16:21:24
【问题描述】:
如何从指定字段中获取 PropertyGrid 的 TextBox? 我需要这个 TextBox 来设置指向文本结尾的指针。
var num = txtBox.GetCharIndexFromPosition(Cursor.Position);
txtBox.SelectionStart = num + 1;
txtBox.SelectionLength = 0;
那么我怎样才能从 PropertyGrid 中得到这个 TextBox 呢? 此外,PropertyGrid 中的属性是只读的。
【问题讨论】:
-
您需要在文本框中选择文本吗?
标签: c# winforms textbox propertygrid