ArgumentOutOfRangeException in TitleEditor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Kris C
Newbie
Newbie
Posts: 1
Joined: Wed Jan 08, 2025 12:00 am

ArgumentOutOfRangeException in TitleEditor

Post by Kris C » Wed May 28, 2025 6:28 pm

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.
Attachments
TeeChartOptionsBug.zip
(14.49 KiB) Downloaded 122 times
Kris Culin
Senior Software Developer
Water Infrastructure
Bentley Systems, Inc.

Edu
Newbie
Newbie
Posts: 52
Joined: Tue Nov 28, 2023 12:00 am

Re: ArgumentOutOfRangeException in TitleEditor

Post by Edu » Thu May 29, 2025 11:47 am

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
Edu
Steema Support

Post Reply