11 references to LB_ERR
System.Windows.Forms (11)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
47
if (result == PInvoke.
LB_ERR
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2272
if (maxLength == PInvoke.
LB_ERR
)
2281
Debug.Assert(actualLength != PInvoke.
LB_ERR
, "Should have validated the index above");
2282
return actualLength == PInvoke.
LB_ERR
? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString();
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
949
m.ResultInternal = (LRESULT)PInvoke.
LB_ERR
;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
30
public const int NoMatches = PInvoke.
LB_ERR
;
1540
if (insertIndex == PInvoke.
LB_ERR
)
1568
if (maxLength == PInvoke.
LB_ERR
)
1577
Debug.Assert(actualLength != PInvoke.
LB_ERR
, "Should have validated the index above");
1578
return actualLength == PInvoke.
LB_ERR
? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString();
1596
if (insertIndex == PInvoke.
LB_ERR
)