BUG: You receive a visual designer error message when you use a control that includes a double array in Visual Studio .NET 2003 (832924)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
SYMPTOMSIn Microsoft Visual Studio .NET 2003, when you use a control that includes a double array, you receive the following visual designer error message: At least one element in the source array could not be cast down to the destination array type CAUSEThis behavior occurs because the visual designer generates incorrect code. WORKAROUNDTo work around this behavior, use one the following methods: - Encapsulate the double array in a custom type. Then, implement an ISerializable interface on that type. The type will be persisted into the resource file and the Microsoft .NET Framework visual designer will generate the code to retrieve the serialized information.
- Use a custom collection of double data types instead of an array. Then, attach a custom serializer to the collection to generate the correct code.
STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.REFERENCESFor more information about .NET Framework Visual Designers, visit the Microsoft Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 3/7/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbpending kbtshoot kbbug KB832924 kbAudDeveloper kbAudITPRO |
---|
|