setting the backColor of a textbox using RGB component

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gautam
    New Member
    • Jul 2006
    • 5

    setting the backColor of a textbox using RGB component

    ex:

    I have a color in RGB component say 255,0,0 ie red.

    now i want to set the back color of a textbox using this RGB component

    txtColorBox.Bac kColor = ??????
    Any suggestions???

    -Gautam
  • bdaniel7
    New Member
    • Jul 2006
    • 4

    #2
    Originally posted by Gautam
    ex:

    I have a color in RGB component say 255,0,0 ie red.

    now i want to set the back color of a textbox using this RGB component

    txtColorBox.Bac kColor = ??????
    Any suggestions???

    -Gautam
    .BackColor = System.Drawing. Color.FromArgb( int red, int green, int blue);

    Comment

    • Gautam
      New Member
      • Jul 2006
      • 5

      #3
      Thanks buddy..

      Gautam

      Comment

      Working...