Click to See Complete Forum and Search --> : text box properties


Salt
March 15th, 1999, 01:58 AM
I have a text box that I wish to do two things to:


1. Allow selection of the text for copying, but not deleting or adding text.

2. Insert new text into the bottom of the box, moving all other text up.


If there is another control that will let me do these things easier, I would

be very interested to hear about it.


Salt

Lothar Haensler
April 6th, 1999, 09:47 AM
you should be able to do this with the standard textbox that comes with VB.
Set the Readonly property to true in VB 5 or 6 and you will be able to select text for copying but not for deleting. And, you won't be able to add text.
To Append text to the end of the text simple do something like textbox1.text = textbox1.text & yournewtext or set the SelStart property to the length(textbox1.text) and the cursor will be at the end of the text in your textbox.