设计双击
Dim idx As Integer = e.Sender.SelectionStart
Dim s As String = e.Sender.Text
If idx = 0 Then
Dim arr() As String = s.Replace(vbcr,"").Split(vblf)
Output.Show("结果 = " & arr(0))
Else
Dim i2 As Integer = e.Sender.Text.IndexOf(vbcrlf,idx)
If i2 > -1
s = e.Sender.Text.SubString(0,i2).Replace(vbcr,"")
End If
Dim arr() As String = s.Split(vblf)
Output.Show("结果 = " & arr(arr.Length - 1))
End If