The class member name is not replaced correctly when you try to select a member of a class by using IntelliSense in Visual Studio 2005 or in Visual Studio .NET 2003 (912709)



The information in this article applies to:

  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition

SYMPTOMS

When you try to select a member of a class by using Microsoft IntelliSense in Microsoft Visual Studio 2005 or in Microsoft Visual Studio .NET 2003, the class member name is not replaced correctly.

For example, if you use Microsoft Visual C#, the problem occurs when the following conditions are true:
  • The member name contains double byte character set (DBCS) characters.
  • The line of code that contains the member name ends with a semicolon (;).
  • You try to insert the class member immediately before the semicolon.
  • You manually start IntelliSense by pressing CTRL+J.

CAUSE

This problem occurs because of behavior that occurs when the cursor is between a member and a semicolon. In this case, Visual Studio uses a different algorithm to determine what text to replace with the selection in the completion list.

WORKAROUND

To work around this problem, follow these steps:
  1. Type a blank space before the semicolon that follows the member name.
  2. Position the cursor at the end of the member name or in the middle of the member name and before the space.
  3. Start IntelliSense by pressing CTRL+J again.

REFERENCES

For more information about how to use double byte character set strings in Visual Studio, click the following article number to view the article in the Microsoft Knowledge Base:

893663 Globalization issues in ASP and ASP.NET


Modification Type:MajorLast Reviewed:5/4/2006
Keywords:kbnofix kbDBCS kbtshoot kbprb KB912709 kbAudDeveloper