[RESOLVED] How to make readonly textbox
Hi Guru here,
I would like to create a readonly textbox. It is a textbox enabled user show selected file path into textbox. When user select the picture or file from attach button, the path of file will show in textbox. However, the textbox couldn't be modified, Copy is allowed.
I try to use code in keypress event (Search from VBForums).
It is work fine for backspace but keypress event couldn't detect Delete Button and it may delete text if user right hand click pop up menu on textbox.
Re: How to make readonly textbox
Sorry for my Stupidness. What i need to do is locked the textbox..
> - <
Re: [RESOLVED] How to make readonly textbox
Code:
Me.Text1.Locked = True
use it in appropriate situations. Still better consider using lables if there is no user intervention reqd :wave:
Re: [RESOLVED] How to make readonly textbox
Thanks VBFnewcomer.
However, Label couldn't satisfied my requirement because i need to enable user read the whole path and some of the file path in text is quite long. If i use Label i need set to wraptext, that was not flexible for form space. Furthermore, label cannot copy text.