📜  更改文本框文本颜色 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:07.733000             🧑  作者: Mango

代码示例1
textBox1.ForeColor = Color.FromArgb(255, 0, 0); // color rgb selector here https://www.google.com/search?client=firefox-b-d&q=rgb+color+selector
or
textBox1.ForeColor = Color.Red
or
textBox1.ForeColor = Color.FromKnownColor(KnownColor.Red)
  or
textBox1.ForeColor = Color.FromName("Red")