Article View: comp.lang.basic.visual.misc
Article #512Re: rich text box's
From: Christian
Date: Thu, 27 Aug 1998 00:00
Date: Thu, 27 Aug 1998 00:00
29 lines
1840 bytes
1840 bytes
Add the following line in the Change event
Sub rtbText_Change()
rtbText.SelStart = Len(rtbText.Text)
End Sub
bernie wrote in message <6s2of7$10c$1@news0-alterdial.uu.net>...
>i am building a small chat program. it looks like AOL's imstand messanger.
>it uses to rich text boxes and the bottom one sends text to the top one
>using the code below to send the text to the box on the next line. the top
>box everyone see's EX>
>
>Private Sub cmdAdd_Click()
>Dim stUID As String
>stUID = "(UserName)"
>rtb1.Text = rtb1.Text + vbNewLine + stUID + ":>" + rtbAdd.Text
>
>
>End Sub
>
>it works correctly but i when there is too many lines the new text can't be
>seen i have the scroll bar and you can scroll by hand but i want itto
>automaticly scroll to that last line of text.
>
>if anyone can help me with this or anything doing with building an chat
>program please post or email me at deforest@mkl.com
>
>
Technical Details
Message-ID:
<6s41di$5dq$1@bone.globalone.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6s2of7$10c$1@news0-alterdial.uu.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1053fc,f7468dc70f59f2ab X-Google-Attributes: gid1053fc,public X-Google-Thread: 1212f1,f7468dc70f59f2ab X-Google-Attributes: gid1212f1,public X-Google-Thread: 11629a,f7468dc70f59f2ab X-Google-Attributes: gid11629a,public X-Google-Thread: 110e3b,f7468dc70f59f2ab X-Google-Attributes: gid110e3b,public X-Google-Thread: 111c14,f7468dc70f59f2ab X-Google-Attributes: gid111c14,public From: "Christian" <a@b.c> Subject: Re: rich text box's Date: 1998/08/27 Message-ID: <6s41di$5dq$1@bone.globalone.no> X-Deja-AN: 385325544 References: <6s2of7$10c$1@news0-alterdial.uu.net> X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Global One Norway Newsgroups: comp.lang.basic.visual.misc,comp.lang.clipper.visual-objects,es.comp.lenguajes.visual-basic,microsoft.public.visualj.debugger,no.it.programmering.visual-basic