Guest User

Untitled

a guest
Oct 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Dim CRPos As Integer
  2.  
  3. CRPos = TextBox1.Text.IndexOf(Chr(10))
  4.  
  5. If CRPos > -1 Then
  6.  
  7. TextBox1.Select(1, CRPos)
  8. TextBox1.SelectionLength = CRPos
  9. TextBox1.SelectedText = ""
  10.  
  11. End If
Add Comment
Please, Sign In to add comment