本文介绍了如何找到游标的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

大家好,

我想找到游标的位置,即光标在文本框中的位置.

预先感谢.

Hi Everyone,

I want to find the position of Cursor, i.e the position of cursor on textbox.

Thanx in advance.

推荐答案

Dim lineindex As Integer = myTextBox.GetLineFromCharIndex(myTextBox.SelectionStart)
Dim columnindex As Integer = myTextBox.SelectionStart - myTextBox.GetFirstCharIndexFromLine(myTextBox.GetLineFromCharIndex(myTextBox.SelectionStart))



这篇关于如何找到游标的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 08:29