I want some text written in VB 6.0 in a textbox.
How can I make sure not to edit it.
- Login or Signup Now to post comments
#
Submitted by Sheldon Ron on Sat, 2012-04-07 18:58.
Comment Id: 52935
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.
- Login or Signup Now to post comments

