9 references to OnlyOneControl
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
3817throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch)); 4013throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items)); 4040throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items));
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
180throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text));
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
68throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(item));
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
55throw new ArgumentException(string.Format(SR.OnlyOneControl, value.Text), nameof(value)); 302throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node)); 438throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node));
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
143throw new ArgumentException(string.Format(SR.OnlyOneControl, style.GetType().Name), nameof(style));