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); 625GetMnemonicList(_control, mnemonicList); 683PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(_control, _accelTable)); 707Size size = _control.Size; 743string streamName = _control.GetType().FullName!; 768*phwnd = (HWND)_control.Handle; 863if (PInvoke.SetParent(_control, hwndParent).IsNull) 869_control.CreateControl(); 896if (!_control.ContainsFocus) 898_control.Focus(); 904using var activeObject = ComHelpers.GetComScope<IOleInPlaceActiveObject>(_control); 967_control.Visible = false; 1001|| property.GetValue(_control) is ISerializable; 1053_control, 1099using BSTR bstrSource = new(_control.GetType().FullName!); 1166currentProperty.SetValue(_control, deserialized); 1176$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1193currentProperty.SetValue(_control, newValue); 1273CallParentPropertyChanged(_control, _ambientProperties[i].Name); 1285CallParentPropertyChanged(_control, _ambientProperties[i].Name); 1305if (_control is IButtonControl ibuttonControl) 1406_control.GetMiscStatus(DVASPECT.DVASPECT_CONTENT, out OLEMISC status); 1417if ((pQaContainer->pUnkEventSink is not null) && (_control is UserControl)) 1420if (GetDefaultEventsInterface(_control.GetType()) is { } eventInterface) 1425using var container = ComHelpers.TryGetComScope<IConnectionPointContainer>(_control, out HRESULT hr); 1507_control, 1513if (!saveAllProperties && !currentProperty.ShouldSerializeValue(_control)) 1524object sourceValue = currentProperty.GetValue(_control)!; 1560$"No type converter for property '{currentProperty.Name}' on class {_control.GetType().FullName}"); 1564value = converter.ConvertToInvariantString(currentProperty.GetValue(_control)); 1571currentProperty.GetValue(_control), 1652_control.Site = new AxSourcingSite(_control, _clientSite, "ControlAxSourcingSite"); 1656_control.Site = null; 1666if (_control is IButtonControl buttonControl) 1674PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(_control, _accelTable)); 1679_control.OnTopMostActiveXParentChanged(EventArgs.Empty); 1709Rectangle bounds = _control.Bounds; 1721_control.Size = size; 1724if (_control.Size.Equals(size)) 1756_control.Visible = visible; 1788_control.Bounds = posRect; 1818HWND hWndParent = PInvoke.GetParent(_control); 1820PInvokeCore.MapWindowPoints(hWndParent, _control, ref rcIntersect); 1832_control.SetRegionInternal(_control.Region); 1836_control.Invalidate(); 1870if (_control == target || _control.Contains(target)) 2006rect.left = _control.Left; 2007rect.top = _control.Top; 2017rect.right = rect.left + _control.Width; 2018rect.bottom = rect.top + _control.Height;