• Welcome to Valhalla Legends Archive.
 

RichtTextBox Help

Started by UserLoser, December 27, 2002, 06:46 AM

Previous topic - Next topic

UserLoser

How can i make my RTB remove the top line(or text) when it gets filled with messages.  So when a new message comes in, it removes the top line of the RTB, this way i wont need a scroll bar on it, and wont really need a clear chat..

Grok

I'm thinking this should do it.

   Dim lPos As Long
    With rtb
        lPos = InStr(.Text, vbCrLf)
        If lPos Then
            .Text = Mid(.Text, lPos + 2)
        End If
    End With

Hope this helps.
Grok

UserLoser

#2
Alright thanks, ill give it a test run  ;)

Etheran

#3
Grok, you're evil :P