当“启用"文本框时如何在文本框中制作粗体文本属性为“假"? [英] How to make bold text in TextBox when its "enabled" property is "false"?

查看:72
本文介绍了当“启用"文本框时如何在文本框中制作粗体文本属性为“假"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将TextBox的"enabled"属性设置为"false"时,则文本模糊.当启用"为假"时,如何使该文本为粗体.谢谢.

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.

推荐答案

我认为您需要启用它,设置字体然后禁用它.我认为禁用后它不会刷新.
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.


您可以将其设置为ReadOnly.这种方式看起来像已启用,您可以对其进行格式化,但仍然无法对其进行编辑.或改为使用带边框的标签.
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.


这篇关于当“启用"文本框时如何在文本框中制作粗体文本属性为“假"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆