SelectionStart就可以获取当前的插入符的位置
你试试下面这个例子:
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
button1.Text = textBox1.SelectionStart.ToString();
}