Posted 7 January 2026, 6:12 am EST
- Updated 7 January 2026, 6:17 am EST
While trying to restore this localization feature in our real project, I found another problem: If you use a SDK style project file and set the targetframework to “net48”, the localization editor is empty. If you click the “Create new translation” button, an exception is shown:
This is the exception:
System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at C1.Win.Localization.Design.SelectProductDialog.SelectProduct(IWin32Window owner, String formCaption, go products, gn initialValue)
at C1.Win.Localization.Design.SelectProductDialog.DoSelectProduct(IWin32Window owner, String formCaption, go products, gn initialValue)
at C1.Win.Localization.Design.StringsDesigner.New()
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Attached is a sample project.
PrintPreviewLocalization48SDKStyle.zip
So it seems the localization does not work for SDK style projects?
Best regards
Wolfgang