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).

vb Code:
  1. KeyAscii = 0

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.