Click here to Skip to main content
15,914,109 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Please help me out .
i have a text box when from load what ever text in text box the particular text only should be desable and if user want to write new text it should be write
Posted
Comments
Kuthuparakkal 15-Sep-12 3:36am    
Explain more, I do not understand this.
AmitGajjar 15-Sep-12 3:54am    
not clear.

If I am correct then you are looking for Masked C# TextBox Control[^].
Refer the links below:
MaskedTextBox.Mask Property [^]
Walkthrough: Working with the MaskedTextBox Control[^]
MaskedTextBox Class[^]


--Amit
 
Share this answer
 
If you mean that you want a text box where the user cannot modify some of the text, just add to the end (or similar) then the text box is not a good choice - it can't do it out of the box, and it would be "clumsy" to add that functionality.

However, there is the MaskedTextBox[^] which can: look at the Mask property.

For example, setting the Mask to "FIXED TEXT: AAAAA : MORE" means that the user can enter only 5 alphanumeric characters, which will always be in the area between the ':' characters.
 
Share this answer
 
Comments
Pradhan Gagan 15-Sep-12 5:00am    
you right

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900