Le bouton Image sur visual studio 2010

Je suis en train de créer un bouton avec l'image et pas de texte à partir de la [Conception] de la vue sur Visual Studio 2010. Je drag & a chuté sur le bouton, puis je clique sur l'Image des Biens, je sélectionne une image png à partir de mon fichier de ressources, mais la propriété reste toujours vide et le bouton n'a pas d'image ni sur [Conception] de la vue, ou dans le programme compilé.

J'ai essayé de réglage de l'image sur la Forme.Le concepteur.cs fichier avec:

    //
    //button1
    //
    this.button1.Location = new System.Drawing.Point(73, 11);
    this.button1.Name = "button1";
    this.button1.Size = new System.Drawing.Size(39, 34);
    this.button1.TabIndex = 10;
    this.button1.UseVisualStyleBackColor = true;
    this.button1.Image = Properties.Resources.close_project_img;

Et quand je vais à la [Conception] de Vue, j'obtiens l'erreur :

To prevent possible data loss before loading the designer, the following errors must be resolved: 
Projectitem unavailable.     
Instances of this error (1)  
1.   Show Call Stack  
at EnvDTE.ProjectItem.get_FileCount()
at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.GetFileNameForProjectItem(ProjectItem item)
at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.BuildType()
at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.GetObjectType()
at Microsoft.VisualStudio.Shell.Design.GlobalType.get_ObjectType()
at Microsoft.VisualStudio.Shell.Design.GlobalObject.GetHashCode()
at System.Collections.Generic.ObjectEqualityComparer`1.GetHashCode(T obj)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects(Type baseType)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetTypeFromGlobalObjects(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetRuntimeType(String typeName)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetType(String typeName)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetType(String typeName)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
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)  
Help with this error  
Could not find an associated help topic for this error.

Je peux cliquer sur "ignorer et de continuer" et [Conception] de la vue s'ouvre bien, mais le bouton n'affiche pas l'image sur ce point de vue (il ne l'afficher dans le programme compilé).

Ce que je fais mal ici?

InformationsquelleAutor Meredith | 2011-02-23