以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- TextBox禁用时的背景色如何设置? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=58135) |
-- 作者:nothing -- 发布时间:2014/10/12 10:35:00 -- TextBox禁用时的背景色如何设置? 如题 |
-- 作者:有点甜 -- 发布时间:2014/10/12 10:37:00 -- 呃,一样 e.Form.Controls("TextBox1").BackColor = Color.Red |
-- 作者:nothing -- 发布时间:2014/10/12 11:01:00 -- 我是想达到Enabled启用或禁用颜色看起来一样,我现在设成白色的,好象有点不一样 |
-- 作者:有点甜 -- 发布时间:2014/10/12 11:03:00 -- 那你就不要设置Enabled,设置只读属性ReadOnly
http://www.foxtable.com/help/topics/0749.htm
|
-- 作者:nothing -- 发布时间:2014/10/12 11:11:00 -- ReadOnly光标能进去,也可以复制,所以喜欢用Enabled |
-- 作者:有点甜 -- 发布时间:2014/10/12 11:13:00 -- 我没看出有多少不同,颜色你可以自己控制的,调整到你喜欢的样子即可
http://www.foxtable.com/help/topics/0496.htm
|
-- 作者:nothing -- 发布时间:2014/10/12 11:16:00 -- 我再试试,谢谢 |