4 references to GetNameForControl
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
62if (GetNameForControl(control).Equals(name)) 131throw new ArgumentException(string.Format(SR.AXDuplicateControl, GetNameForControl(control)), nameof(control));
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
261public BSTR Name => new(GetControl() is { } control ? GetNameForControl(control) : string.Empty);
System\Windows\Forms\ActiveX\AxHost.cs (1)
2117return AxContainer.GetNameForControl(this) ?? string.Empty;