11 references to LB_ERR
System.Windows.Forms (11)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
47if (result == PInvoke.LB_ERR)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2201if (maxLength == PInvoke.LB_ERR) 2210Debug.Assert(actualLength != PInvoke.LB_ERR, "Should have validated the index above"); 2211return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString();
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
949m.ResultInternal = (LRESULT)PInvoke.LB_ERR;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
30public const int NoMatches = PInvoke.LB_ERR; 1538if (insertIndex == PInvoke.LB_ERR) 1566if (maxLength == PInvoke.LB_ERR) 1575Debug.Assert(actualLength != PInvoke.LB_ERR, "Should have validated the index above"); 1576return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString(); 1594if (insertIndex == PInvoke.LB_ERR)