Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have searched all over for this
#13
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:

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. <!-- sTongue --><img src="{SMILIES_PATH}/icon_razz.gif" alt="Tongue" title="Razz" /><!-- sTongue -->


Messages In This Thread
I have searched all over for this - by VicDesigns - 08-05-2011, 03:47 AM
Re: I have searched all over for this - by VicDesigns - 08-07-2011, 02:41 PM
Re: I have searched all over for this - by xolara - 09-09-2011, 09:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)