title: How to change label color in vb.net using codes?
body: <p>I want to know how to change the color of a label using its code, something like:</p>
  
  <pre><code>dim r as color
  r = color.red
  </code></pre>
  
  <p>How do I use or assign that code to a label from a button...? Like in my form button and a label.. when the button is clicked the label changes its color .. how do I do that in vb.net?.</p>
  
  <p>Here is my button </p>
  
  <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  
  
          Dim r As Color
          r = Color.Red
  
      End Sub
  
  End Class
  </code></pre>
  
  <p>??</p>