Connecting Tech Pros Worldwide Help | Site Map

Making a text box read only and text in to be copyable

dheerajjoshim's Avatar
Familiar Sight
 
Join Date: Jul 2009
Location: Bangalore, INDIA
Posts: 251
#1: Oct 8 '09
I am creating the text boxes during run time I will display the value of it during th run time. It is working fine.

But my text box should be read only but in the same time i must be able to only copy the text in the text box. I don't want to make the text box disabled.

Is this is possible. Any suggestions?

Regards
Dheeraj Joshi
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,743
#2: Oct 8 '09

re: Making a text box read only and text in to be copyable


Setting it to read only, won't stop you from getting its .Text property so you can use it elsewhere.
dheerajjoshim's Avatar
Familiar Sight
 
Join Date: Jul 2009
Location: Bangalore, INDIA
Posts: 251
#3: Oct 9 '09

re: Making a text box read only and text in to be copyable


Hey tlhintoq i got the solution yesterday itself.

For displaying the text during runtime i was getting its properties by XML. in XML i gave it as Readonly but i tried to match ReadOnly (Cases matching was wrong).

So i was unable to get the desired feature.

Thanks for your reply.

Regards
Dheeraj Joshi
Reply