2 writes to control
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Binding.cs (2)
211
this.
control
= value;
218
control
= oldTarget;
29 references to control
System.Windows.Forms (29)
winforms\Managed\System\WinForms\Binding.cs (29)
158
return this.
control
;
176
return this.
control
as Control;
197
return IsComponentCreated(this.
control
);
202
Debug.Assert(sender ==
control
, "which other control can send us the Load event?");
208
if (this.
control
!= value) {
209
IBindableComponent oldTarget =
control
;
225
BindingContext.UpdateBinding((
control
!= null && IsComponentCreated(
control
) ?
control
.BindingContext: null), this);
478
if (propInfo != null &&
control
!= null) {
480
propInfo.AddValueChanged(
control
, handler);
484
validateInfo.AddEventHandler(
control
, handler);
489
if (propInfo != null &&
control
!= null) {
491
propInfo.RemoveValueChanged(
control
, handler);
495
validateInfo.RemoveEventHandler(
control
, handler);
508
if (
control
!= null && propertyName.Length > 0) {
509
control
.DataBindings.CheckDuplicates(this);
511
Type controlClass =
control
.GetType();
527
InheritanceAttribute attr = (InheritanceAttribute)TypeDescriptor.GetAttributes(
control
)[typeof(InheritanceAttribute)];
532
propInfos = TypeDescriptor.GetProperties(
control
);
565
EventDescriptorCollection eventInfos = TypeDescriptor.GetEvents(
control
);
584
IComponent comp = (this.
control
as IComponent);
603
isNull = (bool) propIsNullInfo.GetValue(
control
);
610
value = propInfo.GetValue(
control
);
1078
propIsNullInfo.SetValue(
control
, true);
1082
propInfo.SetValue(
control
, DataSourceNullValue);
1085
propInfo.SetValue(
control
, null);
1091
propInfo.SetValue(
control
, value);
1154
return (
control
!= null && propertyName.Length > 0 &&