编程资料集中营
 | 网站首页 | 文章中心 | 编程资料2 | 软件下载 | BT下载 | 八卦星闻 | 音乐在线 | 在线游戏 | 免费电影 | 进入问吧 | 
获得光标在多行textbox中的行与列的函数,PublicFunctioncheckrow()AsStringDimrowAsInteger=Me.TextBox1.SelectionStartDimiAsIntegerDimpAsIntegerDimcountAsInteger=0Dimcount1AsInteger=0Fori=0ToMe.TextBox1.Lines.GetUpperBound(0,
您现在的位置: 编程资料,学习资料,c,c++,vc,vc++,java,jsp,j2ee,j2me,asp,php >> 文章中心 >> .NET 专区 >> NET 技术 >> 文章正文
【字体:
获得光标在多行textbox中的行与列的函数   进入问吧

本站地址:http://www.bajiao123.com

作者:admin    文章来源:本站    点击数:    更新时间:2007-6-10    

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

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

                If i = 0 Then

                    p = row

                Else

         &

[1] [2] 下一页

   

进入问吧

本站地址:http://www.bajiao123.com

文章录入:admin    责任编辑:admin 
高级搜索
编程资料集中营