Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a TextArea Non-Editable

Status
Not open for further replies.

mveera

Programmer
Nov 6, 2002
81
US
Hi,

I have a form which contains a scrollable TextArea. I am to disable the Textarea, but when i disable them i am not able to scroll. I would like to know how i can make a TextArea non-editable but should be able to Scroll so that user see the contents in the TextArea.
The way i do now is i mask all KeyPress event in the textarea, so that no characters can be entered in the TextArea. It would be nice if i don't allow them to type at all.

Thanks
Veera
 
Hi,

I found the answer. I will have to set the Locked property of the TextArea to be true so that the TextArea becomes non-editable but scrollable.

Thanks
Veera
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top