system color choices

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

Hi,
how do i set programmicatly the background of a control.. say textbox.. to =
the selection of system.control or controldark?
 
Hi,
how do i set programmicatly the background of a control.. say textbox.. to =
the selection of system.control or controldark?

' Eg: Change TextBox1's backcolor to ControlDark
Me.TextBox1.BackColor = SystemColors.ControlDark


' Eg: Change TextBox1's backcolor to Control
Me.TextBox1.BackColor = SystemColors.Control

Hope this helps,

Onur Güzel
 
TextBox1.BackColor = Color.FromKnownColor(KnownColor.Control)
or
TextBox1.BackColor = Color.FromKnownColor(KnownColor.ControlDark)
 
Back
Top