System.Windows.Forms.ListBox.NoMatches Field

Specifies that no matches are found during a search.

Value: -1

Syntax

public const int NoMatches

Remarks

This constant is returned by the ListBox.FindString(string), ListBox.FindStringExact(string), and ListBox.IndexFromPoint(System.Drawing.Point) methods when no matching values are found in a search.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0