NotifyIcon.Text maximum text length increased

The maximum text length allowed for the NotifyIcon.Text property increased from 63 to 127.

Change description

In previous .NET versions, the maximum text length allowed for the NotifyIcon.Text property is 63 characters. Starting in .NET 6, the maximum allowed text length is 127 characters. In any version, an ArgumentException is thrown when you attempt to set a value that's longer than the limit.

Change category

This change affects binary compatibility.

Reason for change

The maximum allowed text length was increased to be in line with the underlying Windows API. The Windows API was updated in Windows 2000, but due to compatibility reasons, the size limit for this property wasn't updated in .NET Framework.

Version introduced

.NET 6

Review your code and relax any existing guard conditions, if necessary.

Affected APIs

System.Windows.Forms.NotifyIcon.Text