08-07-2011, 02:41 PM
lol They are basically as follows:
205
2
305
3
405
4
505
5
605
6
etc etc etc. And goes really fast like it's doing something from The Matrix or something hahaha.
Anyways, I did the following, which works in adding the line numbers. But with something like:
1||
2||
3||
etc, instead of just
1
2
3
etc.
However, it doesn't take the line numbers away when you go back up:
Have NFI what's going on lol.
Told you I was No0bie. <!-- s --><img src="{SMILIES_PATH}/icon_razz.gif" alt="" title="Razz" /><!-- s -->
205
2
305
3
405
4
505
5
605
6
etc etc etc. And goes really fast like it's doing something from The Matrix or something hahaha.
Anyways, I did the following, which works in adding the line numbers. But with something like:
1||
2||
3||
etc, instead of just
1
2
3
etc.
However, it doesn't take the line numbers away when you go back up:
Code:
Private Sub RichTextBox1_EnterKeyPressed(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles RichTextBox1.KeyDown
Dim numlinecount As Integer
If e.KeyData = Keys.Enter Then
numlinecount = (TextBox1.GetLineFromCharIndex(TextBox1.Text.Length)) + 1
TextBox1.AppendText(CStr(numlinecount) & vbLf)
End If
End Sub
Have NFI what's going on lol.
Told you I was No0bie. <!-- s --><img src="{SMILIES_PATH}/icon_razz.gif" alt="" title="Razz" /><!-- s -->