- You are developing an application in Visual Studio 2010.
- You design a class library (.dll) project in Visual Basic that defines a base form.
- The form contains one or more members whose modifiers are set to Protected or Protected Friend access. This access lets the members be overridden in derived types.
- The members are declared by using the WithEvents keyword in Visual Basic. This is the default behavior in Visual Basic.
- You create a derived form in a C# project that inherits from the base form defined in the Visual Basic project.
- You change the member with Protected or Protected Friend access to override one of its properties, such as Size.
- You save and close the inherited form, and then you reopen the form.
To obtain this hotfix, contact Microsoft Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
PrerequisitesYou must have Visual Studio 2010 installed to apply the hotfix.
Restart requirementYou do not have to restart the computer after you apply this hotfix package.
Hotfix replacement informationThis hotfix package does not replace a previously released hotfix package.
File InformationThe English (United States) version of this hotfix package uses a Microsoft Windows Installer package to install the hotfix package. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
|File name||File version||File size||Date||Time||Platform|
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object index, CultureInfo culture)
at Microsoft.VisualStudio.Shell.Design.PropertyInfoWrapper.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object index, CultureInfo culture)
at System.Reflection.PropertyInfo.GetValue(Object obj, Object index)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyReferenceExpression(IDesignerSerializationManager manager, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
- Set the Modifiers property of the control members to public.
- Remove the WithEvents keyword in the base form class, and instead use the AddHandler statement to control event wiring.
ID d'article : 2284187 - Dernière mise à jour : 29 mars 2011 - Révision : 1