Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
on button click event i want to replace the textbox to label at runtime
Posted
Comments
kishore sharma 3-Apr-13 8:46am    
what you want to achieve by this,why don't use style sheet and readonly.
Richard C Bishop 3-Apr-13 10:02am    
Well, you can't "replace" them. You can toggle the visibility in the button click event. Just set one to true and the other to false.
raj ch 4-Apr-13 8:20am    
why dont u use readonly property of textbox

Just toggle the visibility and set label text as textbox and button click event
 
Share this answer
 
Comments
Anuja Pawar Indore 4-Apr-13 10:17am    
You cannot change textbox to label, either make textbox readonly or use visible true false for Label and Textbox on button click.
My 5+
On Button Click Just Make Label Visible and Button as visible False.
 
Share this answer
 

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