SHARE
TWEET

Untitled

a guest May 15th, 2013 22 Never
  1. TextBox.DataBindings.Add(new Binding("Text", ListBox, "SelectedValue.name"));
  2.        
  3. TextBox.DataBindings.Add(new Binding("Text", ListBox.SelectedValue, "name"));
  4.        
  5. textBox1.DataBindings.Add(new Binding("Text", listBox1, "selectedvalue"));
  6.        
  7. if (textBox1.DataBindings.Count == 0) {
  8.     // OK to data bind textBox1.
  9. }
RAW Paste Data
Top