title: Binding a VB.NET label.text to an object property
body: <p>I want to have a label in a form whose text value changes depending upon the value of an instance of a class. It looks like I can bind the text value of the label to an object dataSource. When I try this it does not seem to work.</p>
  
  <pre><code>Me.Label4.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ItemInfoBindingSource, "ItemNumber", True, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged))
  </code></pre>
  
  <p>My itemInfoBindingSource:</p>
  
  <pre><code>Me.ItemInfoBindingSource.DataSource = GetType(CFP.ItemInfo)
  </code></pre>
  
  <p>and the class definition:</p>
  
  <pre><code>Public Class ItemInfo
      Public Property ItemNumber As String = "rename"
      Public Property Description As String
      Public Property FileLocation As String
      Public Property CompileHistory As List(Of CompileHistory)
  End Class
  </code></pre>
  
  <p>I think what I have done is to bind to a class, not an instance of a class. Thinking about it, what I really want to do is bind an instance of a class to a label... How?
  Is this possible?</p>