VB.NET相当于VB6的vbHighlight和vbHighlightText? (.Backcolor / .ForeColor of TextBox)

时间:2014-09-09 17:52:17

标签: vb.net textbox vb6 background-color vb6-migration

替换以下VB6的.NET等效前/后颜色是什么?

 With TextBox1
    .BackColor = vbHighlight
    .ForeColor = vbHighlightText
 End WIth

1 个答案:

答案 0 :(得分:2)

您正在寻找SystemColors课程:

  

包含与系统显示元素对应的系统颜色,系统画笔和系统资源键。

With TextBox1
  .BackColor = SystemColors.Highlight
  .ForeColor = SystemColors.HighlightText
End WIth