分亭:VB.NET System.Drawing.Color 使用!

bluearrow8888 2007-12-29 02:25:01
已测试OK,

TextBox1.BackColor=System.Drawing.ColorTranslator.FormWin32(RGB(164,196,255))

or

TextBox1.BackColor=System.Drawing.ColorTranslator.FormHtml("#ff00ff")

or

TextBox1.BackColor = System.Drawing.ColorTranslator.FromHtml(Select1.Value)
...全文
623 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hixiaosheng 2007-12-29
  • 打赏
  • 举报
回复
支持
it_gz_xi 2007-12-29
  • 打赏
  • 举报
回复
留个脚印
hzybc 2007-12-29
  • 打赏
  • 举报
回复
多了一种方法,不错,

谢谢分享
llsus 2007-12-29
  • 打赏
  • 举报
回复
不要那么麻烦的,适用Rgb函数直接用Color的fromARgB即可
 TextBox1.BackColor = Color.FromArgb(100, 100, 100)
bluearrow8888 2007-12-29
  • 打赏
  • 举报
回复
分享:VB.NET System.Drawing.Color 使用!

16,556

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧