Business Card Example

3 posts, 0 answers
  1. Tim
    Tim avatar
    27 posts
    Member since:
    Jul 2006

    Posted 04 Jan 2008 Link to this post

    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. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 07 Jan 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. jack
    jack avatar
    1 posts
    Member since:
    Jul 2011

    Posted 12 Jul 2011 Link to this post

    i think this problem in line 57,

    Jack
Back to Top