Scrolling text box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to make a commandline type text box using a RichTextBox.

I currently have it to the state where formating scrolling works so that I
can highlight text (this just uses the SelectionStart, SelectionLength, and
SelectionColor properties).
However when I try and remove text from the textbox all my formating is
trashed. Is there any way of removing text from a text box and keeping the
formating on the text, or saving the formating and reapplying it after
removal?

Thanks
 
I'm not sure that I understand your question. You can use the copy()
and paste() to move text with formating. You can also use the
SelectedRtf property to get the text with the formatting codes. Hope
it helps.
Curtis
http://www.ghostclip.com
Premier Popup Notepad & Help System For Developers
 
I have tryed the Copy and Paste idea. The problem I had with that solution
was when the applcation is running it screws your ClipBoard. For example,
when someone trys to copy something it gets overwriten by the text that my
application is copying when the user trys to paste their text they get crap
from my application.
Then people say to me your application screws my clipboard >| !!!
And I say oh crap :(

Thanks for the sugestion though
any other ideas?
 
Back
Top