1 write to _control
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
154_control = control;
61 references to _control
System.Windows.Forms (61)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (61)
355Control target = _control; 358if (hwnd != _control.HWND && lpmsg->IsMouseMessage()) 364PInvokeCore.MapWindowPoints(hwndMap, _control, ref pt); 447if (!_control.IsHandleCreated) 449_control.CreateHandle(); 466PInvoke.SetWindowExtEx(hdcDraw, _control.Width, _control.Height, (SIZE*)&sWindowExt); 477PInvokeCore.SendMessage(_control, PInvokeCore.WM_PRINT, (WPARAM)hdcDraw, (LPARAM)flags); 481_control.PrintToMetaFile(hdcDraw, flags); 618GetMnemonicList(_control, mnemonicList); 676PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(_control, _accelTable)); 700Size size = _control.Size; 736string streamName = _control.GetType().FullName!; 761*phwnd = (HWND)_control.Handle; 856if (PInvoke.SetParent(_control, hwndParent).IsNull) 862_control.CreateControl(); 889if (!_control.ContainsFocus) 891_control.Focus(); 897using var activeObject = ComHelpers.GetComScope<IOleInPlaceActiveObject>(_control); 960_control.Visible = false; 994|| property.GetValue(_control) is ISerializable; 1046_control, 1092using BSTR bstrSource = new(_control.GetType().FullName!); 1159currentProperty.SetValue(_control, deserialized); 1169$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1186currentProperty.SetValue(_control, newValue); 1266CallParentPropertyChanged(_control, _ambientProperties[i].Name); 1278CallParentPropertyChanged(_control, _ambientProperties[i].Name); 1298if (_control is IButtonControl ibuttonControl) 1399_control.GetMiscStatus(DVASPECT.DVASPECT_CONTENT, out OLEMISC status); 1410if ((pQaContainer->pUnkEventSink is not null) && (_control is UserControl)) 1413if (GetDefaultEventsInterface(_control.GetType()) is { } eventInterface) 1418using var container = ComHelpers.TryGetComScope<IConnectionPointContainer>(_control, out HRESULT hr); 1500_control, 1506if (!saveAllProperties && !currentProperty.ShouldSerializeValue(_control)) 1517object sourceValue = currentProperty.GetValue(_control)!; 1553$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1557value = converter.ConvertToInvariantString(currentProperty.GetValue(_control)); 1564currentProperty.GetValue(_control), 1645_control.Site = new AxSourcingSite(_control, _clientSite, "ControlAxSourcingSite"); 1649_control.Site = null; 1659if (_control is IButtonControl buttonControl) 1667PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(_control, _accelTable)); 1672_control.OnTopMostActiveXParentChanged(EventArgs.Empty); 1702Rectangle bounds = _control.Bounds; 1714_control.Size = size; 1717if (_control.Size.Equals(size)) 1749_control.Visible = visible; 1781_control.Bounds = posRect; 1811HWND hWndParent = PInvoke.GetParent(_control); 1813PInvokeCore.MapWindowPoints(hWndParent, _control, ref rcIntersect); 1825_control.SetRegionInternal(_control.Region); 1829_control.Invalidate(); 1863if (_control == target || _control.Contains(target)) 1999rect.left = _control.Left; 2000rect.top = _control.Top; 2010rect.right = rect.left + _control.Width; 2011rect.bottom = rect.top + _control.Height;