BUG: The "Localizable" property of a Windows Form does not properly handle culture-specific contents of the ListView control (822491)



The information in this article applies to:

  • Microsoft Visual Basic .NET (2003)
  • Microsoft Visual Basic .NET (2002)

SYMPTOMS

When you change the view of a Microsoft Windows Form that contains a ListView control from the localized version to the default language version by setting the Localizable property, you may notice that the elements of the ListView control do not appear in the default language.

CAUSE

When you set the Localizable property of the Windows Form to False, the current set of values in the designer becomes permanent. Therefore, when you set the Localizable property to False and then you change the Language property to Default, the localized version of the ListView control is displayed and the default language version of the ListView control is not displayed.

RESOLUTION

To resolve the behavior that is mentioned in the "Symptoms" section of this article, follow this step instead of step 14 in the "Steps to Reproduce the Behavior" section of this articlee MoreInformation section.
  • Right-click the form, and set the Language property to Default. Do not set the Localizable property to False.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Start Microsoft Visual Studio .NET 2002 or Microsoft Visual Studio .NET 2003.
  2. On the File menu, point to New, and then click Project.
  3. Click Visual Basic Projects or Visual C# Projects under Project Types, and then click Windows Application under Templates.
  4. Click OK. By default, Form1 is added to the project.
  5. On the View menu, click Toolbox.
  6. Add a ListView control to Form1.
  7. On Form1, right-click the ListView control, and then click Properties.
  8. In Properties, click the ellipsis button (...). By default, ListViewItem Collection Editor appears.
  9. Click Add, set the Text property to Item1, and then click OK.
  10. Right-click the form, and then click Properties.
  11. In Properties, set the Localizable property to True, and then set the Language property to Chinese (Traditional).
  12. Repeat steps 6-8.
  13. To change the default input language to Chinese (Traditional), follow these steps:
    1. In Control Panel, click the Regional and Language Options icon.
    2. On the Languages tab, click Details.
    3. Change the Default Input language to Chinese (Traditional).
    Note You must add Chinese (Traditional) language support to Windows if it is not already available.
  14. To display the information in Traditional Chinese, click Item1 in the ListViewItem Collection Editor, and then click OK. The Traditional Chinese version of the ListView control appears on the form.
  15. Right-click the form, and then set the Localizable property to False.

Expected Behavior

The form with the ListView control that contains Item1 appears.

Observed Behavior

The form with the ListView control that contains the Traditional Chinese element appears.

Modification Type:MinorLast Reviewed:2/3/2006
Keywords:kbvs2005swept kbvs2005doesnotapply kbvs2002sp1sweep kbpending kbProperties kbLocalization kbWindowsForms kbListView kbbug KB822491 kbAudDeveloper