title: Set BackColor RGB values via trackbar
body: <p>I'm trying to make an application in c# that lets the user set the <code>backcolor</code>'s <code>.R .G .B</code> of the application using 3 <code>Trackbars</code>.</p>
  
  <p>This is the code I came up with to change the value when the <code>trackbar_Scroll</code> event is called.</p>
  
  <pre><code>    private void trb_G_Scroll(object sender, EventArgs e)
      {
          string bgc_G = this.BackColor.G.ToString();
          int bgc_GNewValue = Convert.ToInt32(bgc_G);
          bgc_GNewValue--;
  
          this.BackColor.G = bgc_GNewValue;
      }
  </code></pre>
  
  <p>So far everything is working except for 1 thing. When I try to set the value using <code>this.BackColor.G = bgc_GNewValue;</code> it wont work.</p>
  
  <p>It gives me the following error</p>
  
  <blockquote>
    <p>Property or indexer 'System.Drawing.Color.G' cannot be assigned to -- it is read only. </p>
  </blockquote>
  
  <p>I've already tried to cast the <code>bgc_GNewValue</code> to a <code>Byte</code>.
  I dont know what I can do to make this work the way I want it to.</p>
  
  <p>Any help would be very much appreciated.</p>