title: Winform : How to show error icon on empty fields?
body: <p>I have a VB.Net application with forms with some bound fields.</p>
  
  <p>When I type some wrong data in fields, the ErrorProvider shows a red ico automatically. </p>
  
  <p>Is there any way that it shows the same icon when some required fields are empty ?</p>
  
  <p>Here is the binding code of my controls : </p>
  
  <pre><code>Dim MyDataTable as datatable = GetDT
  Me.Control.DataBindings.Add(New Binding(Me.BindingProperty, MyDataTable, FieldName, True, DataSourceUpdateMode.OnValidation))
  
  Function GetDT() As DataTable
      Dim DT As New DataTable
  
      Dim i As Integer = 0
      DT.Columns.Add(New DataColumn("C1", i.GetType))
      DT.Columns(0).AllowDBNull = False
  
      Dim R As DataRow = DT.NewRow
      R.Item(0) = 15
      DT.Rows.Add(R)
  
      Return DT
  End Function
  </code></pre>
  
  <p>The method <strong>ErrorProvider.SetError</strong> is not an option since the controls are created in a separate process and do not have access to the ErrorProvider.</p>
  
  <p>Thanks.</p>