Asked By
anonymous
7060 points
N/A
Posted on - 04/07/2012
I want some text written in VB 6.0 in a textbox.
How can I make sure not to edit it.
Do No edit text box.
Â
private sub cmdload _click()
txttext.locked=true
end sub
Â
You cannot change the text. You can select, copy, the text but cannot edit.
the utility is with the scroll bars. The scrollbars appear in a multiline scroll both horizontal and vertical.
However an alternative to it is Enabled= False. But this has a disadvantage that you cannot select and copy, moreover the scrollbars of the text box cannot be used. In fact you can do the same with a label box, with the Autosize, Multiline and Word Wrap Properties to True. Â However You do not get the scrollbars but the size of the label will increase in length, that is vertically.
Thanks.
I need your feedback.
Â