If the form that a TChart is on exceeds a certain width, an ArgumentOutOfRangeException wihll occur in the TitleEditor. Here are the steps to reproduce:
1. Extract the sample project from the attached zip file.
2. Open the project in Visual Studio 2022.
3. Be sure that "Common Language Runtime Exceptions" is checked in Exception Settings.
4. Build and run.
5. Click on the first toolbar button. This will set the width of the form to 2200.
6. Click the options button to open the Options dialog.
7. Select the Titles tab
An exception occurs:
System.ArgumentOutOfRangeException: 'Value of '1041' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value'
The cause is that the maximum value for the Left up/down control is set to 1000 in the TitleEditor.
Recommended fix: Change the maximum to 9999. I doubt any form will have a maximum greater than this.
Although the width of the form may seem large, it really depends on your resolution. Depending on this, it could be as simple as maximizing the form to cause this problem.
ArgumentOutOfRangeException in TitleEditor
ArgumentOutOfRangeException in TitleEditor
- Attachments
-
- TeeChartOptionsBug.zip
- (14.49 KiB) Downloaded 122 times
Kris Culin
Senior Software Developer
Water Infrastructure
Bentley Systems, Inc.
Senior Software Developer
Water Infrastructure
Bentley Systems, Inc.
Re: ArgumentOutOfRangeException in TitleEditor
Hello Kris,
Thank you for your detailed bug report. The team has confirmed that this was indeed a bug—an unusual one that only occurred with very large or dual-monitor setups. A fix has been implemented and will be included in our next version release.
We really appreciate your help in identifying this issue.
Kind regards,
Edu
Thank you for your detailed bug report. The team has confirmed that this was indeed a bug—an unusual one that only occurred with very large or dual-monitor setups. A fix has been implemented and will be included in our next version release.
We really appreciate your help in identifying this issue.
Kind regards,
Edu
Edu
Steema Support
Steema Support