System.Drawing.Color

sundar k replied to Aldo Liaks at 11-May-08 11:22

KnownColor selectedColor = (KnownColor)System.Enum.Parse(typeof(KnownColor), rmLanguage.GetString("tabPage1.BackColor"));

tabPage1.BackColor = System.Drawing.Color.FromKnownColor(selectedColor);

I think with KnownColor and System.Drawing.Color.FromKnownColor you can get the value from resource and can set it to your tabpage control. Take a look at the below link for info, there's a similar sample code,

http://www.java2s.com/Code/CSharp/2D-Graphics/Listallknowncolorinasystem.htm


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  C# 3.0 - Converting string / object to System.Drawing.Point - Aldo Liaks  11-May-08 01:09 1:09:06 AM
      Try - sundar k  11-May-08 03:00 3:00:16 AM
          It WORKS - Aldo Liaks  11-May-08 04:10 4:10:08 AM
          Another way? - Aldo Liaks  11-May-08 04:17 4:17:52 AM
          Convert to System.Drawing.SystemColors.Window - Aldo Liaks  11-May-08 07:43 7:43:30 AM
              System.Drawing.Color - sundar k  11-May-08 11:22 11:22:25 AM
                  Nice - Aldo Liaks  12-May-08 02:45 2:45:30 AM
      See more - Rave Rasaiyah  11-May-08 09:25 9:25:26 PM
          Sounds logic... - Aldo Liaks  12-May-08 02:11 2:11:38 AM
View Posts