title: How to compare colors in vb.net
body: <p>I am doing some UI work with Vb.Net Forms application, at a place I need to match some color and change the UI according to it, at the moment I am little hanged to match the color values,</p>
  
  <p>Like A_Control.Background = B_Control.Background</p>
  
  <p>I have done with getting colors into string and then matching, but that is not effective in some cases, I want to implement a function, that works directly with Colors variables.</p>
  
  <p>Like:</p>
  
  <pre><code>Dim somecolor As New Color()
  somecolor = Color.FromArgb(255, 98, 153, 192)
  Dim str As String = somecolor.R.ToString() + somecolor.G.ToString() + somecolor.B.ToString()
  </code></pre>
  
  <p>by doing this I can have RGB value in string and then I can convert into Integer to match with any other color, is there any  better way to do this?</p>