🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual.misc
2 messages
2 total messages Started by bernie Fri, 28 Aug 1998 00:00
rich text transfer
#507
Author: bernie
Date: Fri, 28 Aug 1998 00:00
8 lines
1340 bytes
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.
Re: rich text transfer
#510
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads