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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top