Implemented interface member:
property
DataBindings
System.Windows.Forms.IBindableComponent.DataBindings
171 references to DataBindings
Accessibility_Core_App (10)
DataBindingExample.cs (10)
51textBox1.DataBindings.Add("Text", stu, "StudentNumber"); 52domainUpDown1.DataBindings.Add("Text", stu, "LuckyNumber"); 53numericUpDown1.DataBindings.Add("Text", stu, "Count"); 54label1.DataBindings.Add("Text", stu, "Name"); 55button1.DataBindings.Add("Text", stu, "Sex"); 56maskedTextBox1.DataBindings.Add("Text", stu, "PhoneNumber"); 57linkLabel1.DataBindings.Add("Text", stu, "HomeNumber"); 58richTextBox1.DataBindings.Add("Text", stu, "Hobby"); 59checkBox1.DataBindings.Add("Checked", stu, "IsStudent"); 60radioButton1.DataBindings.Add("Checked", stu, "IsStudent");
DesignSurface (1)
MainForm.cs (1)
367richTextBox.DataBindings.Add(new Binding("Text", bindingSource, "Text", true, DataSourceUpdateMode.OnPropertyChanged));
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (2)
10793for (int i = 0; i < DataBindings.Count; i++) 10795BindingContext.UpdateBinding(BindingContext, DataBindings[i]);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
379public new ControlBindingsCollection DataBindings => base.DataBindings;
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\ControlDesigner.cs (11)
455Control.DataBindings.CollectionChanged -= _dataBindingsCollectionChanged; 535Debug.Assert(ctl.DataBindings.Count > 0, "we should not be notified if the control has no dataBindings"); 536ctl.DataBindings.CollectionChanged -= _dataBindingsCollectionChanged; 537for (int i = 0; i < ctl.DataBindings.Count; i++) 539Binding binding = ctl.DataBindings[i]; 547ctl.DataBindings.Remove(binding); 552if (ctl.DataBindings.Count == 0) 562ctl.DataBindings.CollectionChanged += _dataBindingsCollectionChanged; 951Control.DataBindings.CollectionChanged += _dataBindingsCollectionChanged; 1044if (ctl.DataBindings.Count == 0 && _removalNotificationHooked) 1054else if (ctl.DataBindings.Count > 0 && !_removalNotificationHooked)
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
36foreach (Binding binding in control.DataBindings)
System.Windows.Forms.Tests (145)
System\Windows\Forms\BindingContextTests.cs (1)
992control.DataBindings.Add(binding);
System\Windows\Forms\ButtonBaseTests.cs (24)
4563Assert.Empty(control.DataBindings); 4578Assert.Empty(control.DataBindings); 4589Assert.Empty(control.DataBindings); 4615Assert.Empty(control.DataBindings); 4630Assert.Empty(control.DataBindings); 4641Assert.Empty(control.DataBindings); 4670Assert.Empty(control.DataBindings); 4685Assert.Empty(control.DataBindings); 4696Assert.Empty(control.DataBindings); 4718Assert.Empty(control.DataBindings); 4733Assert.Empty(control.DataBindings); 4744Assert.Empty(control.DataBindings); 4770Assert.Empty(control.DataBindings); 4785Assert.Empty(control.DataBindings); 4796Assert.Empty(control.DataBindings); 4825Assert.Empty(control.DataBindings); 4840Assert.Empty(control.DataBindings); 4851Assert.Empty(control.DataBindings); 4877Assert.Empty(control.DataBindings); 4888Assert.Empty(control.DataBindings); 4918Assert.Empty(control.DataBindings); 4929Assert.Empty(control.DataBindings); 4962Assert.Empty(control.DataBindings); 4973Assert.Empty(control.DataBindings);
System\Windows\Forms\ControlBindingsCollectionTests.cs (2)
101ControlBindingsCollection collection = control.DataBindings; 254ControlBindingsCollection collection = control.DataBindings;
System\Windows\Forms\ControlTests.Methods.cs (47)
980Assert.Empty(control.DataBindings); 994Assert.Empty(control.DataBindings); 1004Assert.Empty(control.DataBindings); 1031Assert.Empty(control.DataBindings); 1045Assert.Empty(control.DataBindings); 1056Assert.Empty(control.DataBindings); 1085Assert.Empty(control.DataBindings); 1103Assert.Empty(control.DataBindings); 1124Assert.Empty(control.DataBindings); 1151control.DataBindings.Add(new Binding("Text", new object(), "member")); 1158Assert.Empty(control.DataBindings); 1172Assert.Empty(control.DataBindings); 1182Assert.Empty(control.DataBindings); 1213Assert.Empty(control.DataBindings); 1227Assert.Empty(control.DataBindings); 1241Assert.Empty(control.DataBindings); 1282Assert.Empty(control.DataBindings); 1296Assert.Empty(control.DataBindings); 1306Assert.Empty(control.DataBindings); 1331Assert.Empty(control.DataBindings); 1341Assert.Empty(control.DataBindings); 1368Assert.Empty(control.DataBindings); 1382Assert.Empty(control.DataBindings); 1393Assert.Empty(control.DataBindings); 1425Assert.Empty(control.DataBindings); 1436Assert.Empty(control.DataBindings); 1465Assert.Empty(control.DataBindings); 1483Assert.Empty(control.DataBindings); 1504Assert.Empty(control.DataBindings); 1551Assert.Empty(control.DataBindings); 1572Assert.Empty(control.DataBindings); 1599control.DataBindings.Add(new Binding("Text", new object(), "member")); 1606Assert.Empty(control.DataBindings); 1620Assert.Empty(control.DataBindings); 1630Assert.Empty(control.DataBindings); 1647control.DataBindings.Add(binding); 1658Assert.Same(binding, Assert.Single(control.DataBindings)); 1668Assert.Same(binding, Assert.Single(control.DataBindings)); 1699Assert.Empty(control.DataBindings); 1713Assert.Empty(control.DataBindings); 1727Assert.Empty(control.DataBindings); 1766Assert.Empty(control.DataBindings); 1780Assert.Empty(control.DataBindings); 6402Assert.Empty(control.DataBindings); 6405control.DataBindings.Add(new Binding("Text", new object(), "member")); 6407Assert.Empty(control.DataBindings); 6411Assert.Empty(control.DataBindings);
System\Windows\Forms\ErrorProviderTests.cs (1)
1317form.DataBindings.Add("Text", customDataSource, "Error");
System\Windows\Forms\StatusStripTests.cs (8)
914Assert.Empty(control.DataBindings); 929Assert.Empty(control.DataBindings); 940Assert.Empty(control.DataBindings); 967Assert.Empty(control.DataBindings); 982Assert.Empty(control.DataBindings); 993Assert.Empty(control.DataBindings); 1035Assert.Empty(control.DataBindings); 1046Assert.Empty(control.DataBindings);
System\Windows\Forms\ToolStripDropDownTests.cs (27)
3046Assert.Empty(control.DataBindings); 3062Assert.Empty(control.DataBindings); 3074Assert.Empty(control.DataBindings); 3102Assert.Empty(control.DataBindings); 3119Assert.Empty(control.DataBindings); 3132Assert.Empty(control.DataBindings); 3159Assert.Empty(control.DataBindings); 3175Assert.Empty(control.DataBindings); 3187Assert.Empty(control.DataBindings); 3219Assert.Empty(control.DataBindings); 3239Assert.Empty(control.DataBindings); 3259Assert.Empty(control.DataBindings); 3290Assert.Empty(control.DataBindings); 3306Assert.Empty(control.DataBindings); 3318Assert.Empty(control.DataBindings); 3345Assert.Empty(control.DataBindings); 3356Assert.Empty(control.DataBindings); 3383Assert.Empty(control.DataBindings); 3400Assert.Empty(control.DataBindings); 3413Assert.Empty(control.DataBindings); 3446Assert.Empty(control.DataBindings); 3459Assert.Empty(control.DataBindings); 3492Assert.Empty(control.DataBindings); 3512Assert.Empty(control.DataBindings); 3532Assert.Empty(control.DataBindings); 3581Assert.Empty(control.DataBindings); 3600Assert.Empty(control.DataBindings);
System\Windows\Forms\ToolStripTests.cs (19)
4364Assert.Empty(control.DataBindings); 4380Assert.Empty(control.DataBindings); 4392Assert.Empty(control.DataBindings); 4418Assert.Empty(control.DataBindings); 4434Assert.Empty(control.DataBindings); 4446Assert.Empty(control.DataBindings); 4478Assert.Empty(control.DataBindings); 4498Assert.Empty(control.DataBindings); 4518Assert.Empty(control.DataBindings); 4549Assert.Empty(control.DataBindings); 4565Assert.Empty(control.DataBindings); 4577Assert.Empty(control.DataBindings); 4604Assert.Empty(control.DataBindings); 4615Assert.Empty(control.DataBindings); 4646Assert.Empty(control.DataBindings); 4666Assert.Empty(control.DataBindings); 4686Assert.Empty(control.DataBindings); 4735Assert.Empty(control.DataBindings); 4754Assert.Empty(control.DataBindings);
System\Windows\Forms\WebBrowserTests.cs (16)
2529Assert.Empty(control.DataBindings); 2544Assert.Empty(control.DataBindings); 2555Assert.Empty(control.DataBindings); 2584Assert.Empty(control.DataBindings); 2599Assert.Empty(control.DataBindings); 2610Assert.Empty(control.DataBindings); 2632Assert.Empty(control.DataBindings); 2647Assert.Empty(control.DataBindings); 2658Assert.Empty(control.DataBindings); 2691Assert.Empty(control.DataBindings); 2702Assert.Empty(control.DataBindings); 2731Assert.Empty(control.DataBindings); 2746Assert.Empty(control.DataBindings); 2757Assert.Empty(control.DataBindings); 2783Assert.Empty(control.DataBindings); 2794Assert.Empty(control.DataBindings);