🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.misc
Article #510

Re: rich text transfer

#510
From: Thomas Bakketun
Date: Sun, 30 Aug 1998 00:00
26 lines
2128 bytes
If you use the TextRTF property all formatting will be preserved. But 
if you just add a string to the beginning of this string because of the 
formatting codes in it. This problem can be solved by adding the string 
after you have copied the text, like this:

    rtf2.TextRTF = rtf1.TextRTF
    rtf2.SelText = Name

The SelText property is the currently selected text, which is nothing, 
because you have just assigned the textbox a new text.

bernie wrote:
> 
> what would be the code i wiuld need to make to rich text boxed that on the
> click on a command button it would send the text to another rich text box +
> a string (the string being a users name connected to the beging of the sext
> tranfered) and still keep the bold, underline etc.... properties?? i have
> been working on this problem for a while any help would be very helpful.
> 
> an good example of that i am tryine to create is a program that works like
> AOL Instant Messanger.

-- 
Thomas Bakketun       | Heimeside: http://www.himolde.no/~thomasb 
Mekvegen 15 D 5 D     | E-post: Thomas.Bakketun@himolde.no        
N-6400  MOLDE         | Tlf: 908 84 143
Technical Details
Message-ID: <35E94F07.8486F13D@himolde.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6s5j58$h1b$1@news0-alterdial.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1053fc,8a9033dde8a34905
X-Google-Attributes: gid1053fc,public
X-Google-Thread: 11629a,8a9033dde8a34905
X-Google-Attributes: gid11629a,public
X-Google-Thread: 111c14,8a9033dde8a34905
X-Google-Attributes: gid111c14,public
X-Google-Thread: 1212f1,8a9033dde8a34905
X-Google-Attributes: gid1212f1,public
X-Google-Thread: 110e3b,8a9033dde8a34905
X-Google-Attributes: gid110e3b,public
From: Thomas Bakketun <Thomas.Bakketun@himolde.no>
Subject: Re: rich text transfer
Date: 1998/08/30
Message-ID: <35E94F07.8486F13D@himolde.no>
X-Deja-AN: 386136694
Content-Transfer-Encoding: 7bit
References: <6s5j58$h1b$1@news0-alterdial.uu.net>
Content-Type: text/plain; charset=us-ascii
Organization: UNINETT news service
Mime-Version: 1.0
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