mookie Posted February 18, 2005 Posted February 18, 2005 I have created a richtextbox and am using a splitter and a panel that contains another richtext box. the purpose of this will be able to look at the same file in a couple different places. Im not sure what to do about updating the text from one to another though. I am using the keyup event and doing a simple if rtf.text <> rtf2.text then rtf2.text = rtf.text endif theres a couple of problems with this though. I want the text to be formatted the same between the boxes. is there a way to do it other than element by element? i tried doing dim textb as collection for each textb in rtf rtf.textb = rtf2.textb next the problem with that is that some things such as item are read only. I tried doing it a couple different ways and dont mind doing it element by element but i figured that by asking, I may learn the right ways to do things sooner. Quote
mookie Posted February 18, 2005 Author Posted February 18, 2005 heres another question to go along with this control, Can I use 2 different status bars for this? or might it be better to use a status bar at the bottom of the window to display the cursor position for each richtextbox? Quote
Dill Posted February 18, 2005 Posted February 18, 2005 (edited) The Text Property of an RTF box only holds the Raw text. use the .rtf property this holds the fully formatted text. you can use more than one status bar on your form if u like just turn the Dock property off at design and u can move it freely to where you like Edited February 18, 2005 by Dill Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.