[RESOLVED] [2008] Getting the cursorto jump to a specific line in a textbox
Code:
Dim Ask_ As Integer
Try
Ask_ = InputBox("Enter in the line you wish to go to.", "Go To", 1)
Catch
Msgbox("You must enter in a number!")
End Try
'Some code here? TxtText.SelectionStart = ?
How could i make the cursor jump to the line that the user specified?
Re: [2008] Getting the cursorto jump to a specific line in a textbox
vb Code:
TxtText.SelectionStart = TxtText.Text.IndexOf(TxtText.Lines(your number).ToString)
TxtText.Focus()
Re: [2008] Getting the cursorto jump to a specific line in a textbox
Thanks dude. It worked =D.