Steps to duplicate:
- Open Find dialog and search for a string with "Find Next" (at least one occurrence must be found in the document).
- Ensure that the "Match Whole Word" checkbox is checked.
- Search for any string with "Find Next".
- This will result in an unhandled ArgumentOutOfRangeException indicating count is less than zero, and the application will terminate.
This occurs reliably in version 20.4.0.38 and in 18.4.0.30. Since I have no access to the source code for the Find dialog within the Edit control, I can neither catch this exception, nor modify the source to avoid it.
My application is targeting .NET framework 4.7.2