Multilanguage Forms




If there is an ImageList control on multi-lang form, and its collection is
changed (e.g. by adding new icons), then changing Language property raises
designer error:

"Specified argument was out of the range of valid values. Parameter name:
'X' is not a valid value for 'index'.
at
System.Windows.Forms.Design.ImageListDesigner.OriginalImageCollection.get_Item(Int32
index)
at
System.Windows.Forms.Design.ImageListDesigner.OriginalImageCollection.SetKeyName(Int32
index, String name)"

This is caused by difference between xxx.Designer.cs file and old
xxxx.LL.resx file for other language used. Maybe the solution should be
image list stream to be automatically transferred to all localized resource
files.

A temporary workaround is to open form .resx files using 'View Code' menu
option, and manually copy base64 encoded image list stream from one resource
file to the other(s).


.


Loading