So, I want the new values to load everytime the combobox selection is changed, but I don't want the accept button enabled until the textboxes are changed by the user. So, I fixed the problem by creating a boolean and setting it before and after filling the boxes.

But, is there a better way to do this?

VB Code:
  1. Dim NonUI As Boolean = True
  2.  
  3.     Private Sub cmbTable_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbTable.SelectedValueChanged
  4.         Me.btnAccept.Enabled = False
  5.  
  6.         Me.NonUI = False
  7.         Me.txtRollUp.Value = Me.cmbTable.Columns("RollupMarkup").CellValue(Me.cmbTable.SelectedIndex)
  8.         Me.txtSell.Value = Me.cmbTable.Columns("SellMarkup").CellValue(Me.cmbTable.SelectedIndex)
  9.         Me.NonUI = True
  10.     End Sub
  11.  
  12.     Private Sub btnAccept_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAccept.Click
  13. 'update the fields in the db
  14.  
  15.         Me.btnAccept.Enabled = False
  16.     End Sub
  17.  
  18.     Private Sub txtRollUp_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtRollUp.TextChanged
  19.         If Me.NonUI = True Then Me.btnAccept.Enabled = True
  20.     End Sub
  21.  
  22.     Private Sub txtSell_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSell.TextChanged
  23.         If Me.NonUI = True Then Me.btnAccept.Enabled = True
  24.     End Sub