1 write to _control
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
153_control = control;
61 references to _control
System.Windows.Forms (61)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (61)
354Control target = _control; 357if (hwnd != _control.HWND && lpmsg->IsMouseMessage()) 363PInvokeCore.MapWindowPoints(hwndMap, _control, ref pt); 446if (!_control.IsHandleCreated) 448_control.CreateHandle(); 465PInvoke.SetWindowExtEx(hdcDraw, _control.Width, _control.Height, (SIZE*)&sWindowExt); 476PInvokeCore.SendMessage(_control, PInvokeCore.WM_PRINT, (WPARAM)hdcDraw, (LPARAM)flags); 480_control.PrintToMetaFile(hdcDraw, flags); 617GetMnemonicList(_control, mnemonicList); 675PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(_control, _accelTable)); 699Size size = _control.Size; 735string streamName = _control.GetType().FullName!; 760*phwnd = (HWND)_control.Handle; 855if (PInvoke.SetParent(_control, hwndParent).IsNull) 861_control.CreateControl(); 888if (!_control.ContainsFocus) 890_control.Focus(); 896using var activeObject = ComHelpers.GetComScope<IOleInPlaceActiveObject>(_control); 959_control.Visible = false; 993|| property.GetValue(_control) is ISerializable; 1045_control, 1091using BSTR bstrSource = new(_control.GetType().FullName!); 1158currentProperty.SetValue(_control, deserialized); 1168$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1185currentProperty.SetValue(_control, newValue); 1265CallParentPropertyChanged(_control, _ambientProperties[i].Name); 1277CallParentPropertyChanged(_control, _ambientProperties[i].Name); 1297if (_control is IButtonControl ibuttonControl) 1398_control.GetMiscStatus(DVASPECT.DVASPECT_CONTENT, out OLEMISC status); 1409if ((pQaContainer->pUnkEventSink is not null) && (_control is UserControl)) 1412if (GetDefaultEventsInterface(_control.GetType()) is { } eventInterface) 1417using var container = ComHelpers.TryGetComScope<IConnectionPointContainer>(_control, out HRESULT hr); 1499_control, 1505if (!saveAllProperties && !currentProperty.ShouldSerializeValue(_control)) 1516object sourceValue = currentProperty.GetValue(_control)!; 1552$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1556value = converter.ConvertToInvariantString(currentProperty.GetValue(_control)); 1563currentProperty.GetValue(_control), 1644_control.Site = new AxSourcingSite(_control, _clientSite, "ControlAxSourcingSite"); 1648_control.Site = null; 1658if (_control is IButtonControl buttonControl) 1666PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(_control, _accelTable)); 1671_control.OnTopMostActiveXParentChanged(EventArgs.Empty); 1701Rectangle bounds = _control.Bounds; 1713_control.Size = size; 1716if (_control.Size.Equals(size)) 1748_control.Visible = visible; 1780_control.Bounds = posRect; 1810HWND hWndParent = PInvoke.GetParent(_control); 1812PInvokeCore.MapWindowPoints(hWndParent, _control, ref rcIntersect); 1824_control.SetRegionInternal(_control.Region); 1828_control.Invalidate(); 1862if (_control == target || _control.Contains(target)) 1998rect.left = _control.Left; 1999rect.top = _control.Top; 2009rect.right = rect.left + _control.Width; 2010rect.bottom = rect.top + _control.Height;