This is a migrated thread and some comments may be shown as answers.

Business Card Example

2 Answers 125 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tim
Top achievements
Rank 1
Tim asked on 04 Jan 2008, 03:48 PM
I get an error message when trying to set up a project for the BusinessCard Example that you show under Integration for Winform Examples.
I get an error when I double-click on Form1.cs.

The designer cannot process the code at line 56: this.panel1.BackgroundImage = global::Telerik.Examples.WinControls.Properties.Resources.brushedMetal; The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
Hide    Edit

at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateQuoteExpression(XmlElementData xmlElement)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.XmlElementData.get_CodeDomElement()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.EndElement(String prefix, String name, String urn)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.Parse(XmlReader reader)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.ParseXml(String xmlStream, CodeStatementCollection statementCollection, String fileName, String methodName)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 07 Jan 2008, 04:43 PM
Hi Leonard,

This error appears because the brushedMetal image file could not be found. Just add it as a project resource and you should be set. The image can be located at: C:\Program Files\Telerik\RadControls for WinForms Q3 2007\Examples\Resources\brushedMetal.jpg.

What you should do next is change the resource path to the resource. Here is the pattern:

this.panel1.BackgroundImage = global::YourProjectNamespace.Properties.Resources.brushedMetal; 

If you need further assistance, do not hesitate to contact us.


Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
jack
Top achievements
Rank 1
answered on 12 Jul 2011, 07:09 PM
i think this problem in line 57,

Jack
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Tim
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
jack
Top achievements
Rank 1
Share this question
or