Microsoft KB Archive/822491

= BUG: The &quot;Localizable&quot; property of a Windows Form does not properly handle culture-specific contents of the ListView control =

Article ID: 822491

Article Last Modified on 5/18/2007

-

APPLIES TO


 * Microsoft Visual Basic .NET 2003 Standard Edition
 * Microsoft Visual Basic .NET 2002 Standard Edition

-





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 &quot;Symptoms&quot; section of this article, follow this step instead of step 14 in the &quot;Steps to Reproduce the Behavior&quot; 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 &quot;Applies to&quot; section.



Steps to Reproduce the Behavior
 Start Microsoft Visual Studio .NET 2002 or Microsoft Visual Studio .NET 2003. On the File menu, point to New, and then click Project. Click Visual Basic Projects or Visual C# Projects under Project Types, and then click Windows Application under Templates. Click OK. By default, Form1 is added to the project. On the View menu, click Toolbox.</li> Add a ListView control to Form1.</li> On Form1, right-click the ListView control, and then click Properties.</li> In Properties, click the ellipsis button (...). By default, ListViewItem Collection Editor appears.</li> Click Add, set the Text property to Item1, and then click OK.</li> Right-click the form, and then click Properties.</li> In Properties, set the Localizable property to True, and then set the Language property to Chinese (Traditional).</li> Repeat steps 6-8.</li> To change the default input language to Chinese (Traditional), follow these steps: <ol style="list-style-type: lower-alpha;"> In Control Panel, click the Regional and Language Options icon.</li> On the Languages tab, click Details.</li> Change the Default Input language to Chinese (Traditional).</li></ol>

Note You must add Chinese (Traditional) language support to Windows if it is not already available.</li> 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.</li> Right-click the form, and then set the Localizable property to False.</li></ol>

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.

<div class="references_section">