Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I set "enabled" property of TextBox is "false" then the text is foggy. How to make this text is bold when "enabled" is "false". Thanks.
Posted

I think you need to enable it, set the font and then disable it. I don't think it will refresh while it's disabled.
 
Share this answer
 
Comments
Andrewpeter 25-Aug-12 13:11pm    
I don't get expected result when I do as your way, I want to use Label to instead TextBox, but Right-Aligned is not to work with Label control, and it works with TextBox control, I need Right align. Another your way to help me do this? Thanks.
Philippe Mori 25-Aug-12 13:21pm    
For right align to works, label must not be auto-sized as autosizing is relatif to top-left corner.
Andrewpeter 25-Aug-12 13:19pm    
My vote is 5. Thank you very much.
You can make it ReadOnly. This way will look like enabled, you can format it, and still can not be edited. Or use a Label with border instead.
 
Share this answer
 
Comments
Andrewpeter 25-Aug-12 13:14pm    
OK, thank you, it is great idea which I need.
Andrewpeter 25-Aug-12 13:15pm    
My vote for your answer is 5.
Zoltán Zörgő 25-Aug-12 15:14pm    
Thank you

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