Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panelbar (obsolete as of Q2 2010) > Business Card Example

Not answered Business Card Example

Feed from this thread
  • Leonard avatar

    Posted on Jan 4, 2008 (permalink)

    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)

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Jan 7, 2008 (permalink)

    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

    Reply

  • jack avatar

    Posted on Jul 12, 2011 (permalink)

    i think this problem in line 57,

    Jack

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panelbar (obsolete as of Q2 2010) > Business Card Example
Related resources for "Business Card Example"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]