1 write to control
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Control.cs (1)
16304
this.
control
= control;
72 references to control
System.Windows.Forms (72)
winforms\Managed\System\WinForms\Control.cs (72)
16566
Control target =
control
;
16568
if (msg.hwnd !=
control
.Handle && msg.message >= NativeMethods.WM_MOUSEFIRST && msg.message <= NativeMethods.WM_MOUSELAST) {
16576
UnsafeNativeMethods.MapWindowPoints(new HandleRef(null, hwndMap), new HandleRef(
control
,
control
.Handle), pt, 1);
16678
if (!
control
.IsHandleCreated) {
16679
control
.CreateHandle();
16697
SafeNativeMethods.SetWindowExtEx(new HandleRef(null, hdcDraw),
control
.Width,
control
.Height, sWindowExt);
16712
control
.SendMessage(NativeMethods.WM_PRINT, hdcDraw, flags);
16714
control
.PrintToMetaFile(new HandleRef(null, hdcDraw), flags);
16870
GetMnemonicList(
control
, mnemonicList);
16957
Size size =
control
.Size;
16994
string streamName =
control
.GetType().FullName;
17011
hwnd =
control
.Handle;
17105
UnsafeNativeMethods.SetParent(new HandleRef(
control
,
control
.Handle), new HandleRef(null, hwndParent));
17111
control
.CreateControl();
17138
if (!
control
.ContainsFocus)
control
.FocusInternal();
17143
inPlaceFrame.SetActiveObject(
control
, null);
17145
inPlaceUiWindow.SetActiveObject(
control
, null);
17207
control
.Visible = false;
17252
return (prop.GetValue(
control
) is ISerializable);
17308
PropertyDescriptorCollection props = TypeDescriptor.GetProperties(
control
,
17350
props[i].SetValue(
control
, formatter.Deserialize(stream));
17360
Debug.Assert(converter != null, "No type converter for property '" + props[i].Name + "' on class " +
control
.GetType().FullName);
17377
props[i].SetValue(
control
, value);
17393
err.bstrSource =
control
.GetType().FullName;
17522
CallParentPropertyChanged(
control
, ambientProperties[i].Name);
17539
IButtonControl ibuttonControl =
control
as IButtonControl;
17552
CallParentPropertyChanged(
control
, ambientProperties[i].Name);
17666
((UnsafeNativeMethods.IOleObject)
control
).GetMiscStatus(NativeMethods.DVASPECT_CONTENT, out status);
17682
if ((pQaContainer.pUnkEventSink != null) && (
control
is UserControl)) {
17684
Type eventInterface = GetDefaultEventsInterface(
control
.GetType());
17692
AdviseHelper.AdviseConnectionPoint(
control
, pQaContainer.pUnkEventSink, eventInterface, out pQaControl.dwEventCookie);
18027
PropertyDescriptorCollection props = TypeDescriptor.GetProperties(
control
,
18031
if (fSaveAllProperties || props[i].ShouldSerializeValue(
control
)) {
18042
formatter.Serialize(stream, props[i].GetValue(
control
));
18054
Debug.Assert(converter != null, "No type converter for property '" + props[i].Name + "' on class " +
control
.GetType().FullName);
18057
propValue = converter.ConvertToInvariantString(props[i].GetValue(
control
));
18061
byte[] data = (byte[])converter.ConvertTo(null, CultureInfo.InvariantCulture, props[i].GetValue(
control
), typeof(byte[]));
18175
control
.Site = new AxSourcingSite(
control
, clientSite, "ControlAxSourcingSite");
18178
control
.Site = null;
18188
if (
control
is IButtonControl && GetAmbientProperty(NativeMethods.ActiveX.DISPID_AMBIENT_UIDEAD, ref obj)) {
18189
((IButtonControl)
control
).NotifyDefault((bool)obj);
18200
this.
control
.Dispose();
18235
control
.OnTopMostActiveXParentChanged(EventArgs.Empty);
18261
Rectangle bounds =
control
.Bounds;
18274
control
.Size = size;
18279
if (!
control
.Size.Equals(size)) {
18314
control
.Visible = visible;
18359
Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "Old Control Bounds: " +
control
.Bounds);
18369
control
.Bounds = posRect;
18407
IntPtr hWndParent = UnsafeNativeMethods.GetParent(new HandleRef(
control
,
control
.Handle));
18412
UnsafeNativeMethods.MapWindowPoints(new HandleRef(null, hWndParent), new HandleRef(
control
,
control
.Handle), ref rcIntersect, 2);
18429
if (setRegion &&
control
.IsHandleCreated) {
18432
Region controlRegion =
control
.Region;
18434
IntPtr rgn =
control
.GetHRgn(controlRegion);
18438
UnsafeNativeMethods.SetWindowRgn(new HandleRef(
control
,
control
.Handle), new HandleRef(this, finalClipRegion), SafeNativeMethods.IsWindowVisible(new HandleRef(
control
,
control
.Handle)));
18444
control
.Invalidate();
18518
if (target != null && (
control
== target ||
control
.Contains(target))) {
18633
rc.left =
control
.Left;
18634
rc.top =
control
.Top;
18642
rc.right = rc.left +
control
.Width;
18643
rc.bottom = rc.top +
control
.Height;