获得光标在多行textbox中的行与列的函数[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 hanmo 的 blog

public function checkrow() as string

        dim row as integer = me.textbox1.selectionstart

        dim i as integer

        dim p as integer

        dim count as integer = 0

        dim count1 as integer = 0

        for i = 0 to me.textbox1.lines.getupperbound(0)

            count += me.textbox1.lines(i).length + 2 ' 一个回车相当于2

            if row <= count then

本文关键:获得光标在多行textbox中的行与列的函数
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top