Advertisement
Guest User

Untitled

a guest
May 15th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement