Do No edit text box.

Asked By 7060 points N/A Posted on -
qa-featured

I want some text written in VB 6.0 in a textbox.

How can I make sure not to edit it.

SHARE
Answered By 0 points N/A #83143

Do No edit text box.

qa-featured

 

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.
 

Related Questions