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)
2272if (maxLength == PInvoke.LB_ERR) 2281Debug.Assert(actualLength != PInvoke.LB_ERR, "Should have validated the index above"); 2282return 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; 1540if (insertIndex == PInvoke.LB_ERR) 1568if (maxLength == PInvoke.LB_ERR) 1577Debug.Assert(actualLength != PInvoke.LB_ERR, "Should have validated the index above"); 1578return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString(); 1596if (insertIndex == PInvoke.LB_ERR)