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