當(dāng)前位置:
首頁(yè) >
UltraTextEditor
發(fā)布時(shí)間:2025/7/25
33
豆豆
生活随笔
收集整理的這篇文章主要介紹了
UltraTextEditor
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
UltraTextEditor ????? 使用UltraTextEditor(或TextBox)文本框控件時(shí),可能經(jīng)常會(huì)按需要將它Enable或Disable/ReadOnly,默認(rèn)情況下文字為黑色,Enable時(shí)底色為白色,Disable/ReadOnly時(shí)底色變?yōu)榛疑_@樣顯得不是特別好看,尤其當(dāng)一個(gè)WinForm上堆積了大量文本框的時(shí)候。如果能讓Disable/ReadOnly時(shí)的底色也是白色就能解決問題,WebForm可以靠CSS實(shí)現(xiàn),WinForm怎么辦,難道要自己處理OnPaint?
????? 其實(shí)用UltraTextEditor的話異常簡(jiǎn)單,只需分別設(shè)置其Appearance屬性組下的兩個(gè)屬性BackColorDisabled和ForeColorDisabled為Write和Black。也可用代碼設(shè)置:
????? UltraTextEditor1.Appearance.BackColorDisabled = Color.White;
??????UltraTextEditor1.Appearance.ForeColorDisabled = Color.Black;
????? 效果如下圖:
posted on 2007-09-21 15:35?heminzhou 閱讀(...) 評(píng)論(...) 編輯 收藏
????? 其實(shí)用UltraTextEditor的話異常簡(jiǎn)單,只需分別設(shè)置其Appearance屬性組下的兩個(gè)屬性BackColorDisabled和ForeColorDisabled為Write和Black。也可用代碼設(shè)置:
????? UltraTextEditor1.Appearance.BackColorDisabled = Color.White;
??????UltraTextEditor1.Appearance.ForeColorDisabled = Color.Black;
????? 效果如下圖:
posted on 2007-09-21 15:35?heminzhou 閱讀(...) 評(píng)論(...) 編輯 收藏
轉(zhuǎn)載于:https://www.cnblogs.com/heminzhou/archive/2007/09/21/901418.html
總結(jié)
以上是生活随笔為你收集整理的UltraTextEditor的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《播客》项目总结——web标准页面设计方
- 下一篇: DDBuildToolsRelease1