开发者

what are the background and foreground colors of a textbox when it's disabled in .net?

what are th开发者_JAVA百科e background and foreground colors of a textbox when it's disabled in .net ?


This depends on the styles that you've defined in Windows, unless you're specifiying the color that should be used explicitly (and choose one that is not dependent on Windows settings)


From the System.Drawing.SystemColors class, use SystemColors.GrayText for the foreground color. From a quick test, I believe SystemColors.Control is the background color, although the documentation does not state this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜