message box with telerik.wincotrols.radelement.backgroundshape

3 posts, 1 answers
  1. Temp
    Temp avatar
    3 posts
    Member since:
    Aug 2012

    Posted 02 Sep 2012 Link to this post

    And also a question how to create header for the chart?

    I'm trying to add radchartview to my form but manually(without using toolbox).
    But when I run my application and when I press button to call my form with radchartview I've got messagebox with 
    telerik.wincontrols.radelement.backgroundshape.

    What's the problem? My code in initializecomponent
    this.radChartView1 = new RadChartView();
    ((System.ComponentModel.ISupportInitialize)(this.radChartView1)).BeginInit();
     
    this.SuspendLayout();
     
    this.radChartView1.Size = new System.Drawing.Size(592, 336);
    this.radChartView1.TabIndex = 10;
    this.radChartView1.Name = "radChartView1";
    this.radChartView1.AutoScroll = true;
    this.radChartView1.Location = new System.Drawing.Point(0, 0);
    this.radChartView1.Anchor =
        ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
        | System.Windows.Forms.AnchorStyles.Left)
        | System.Windows.Forms.AnchorStyles.Right)));
    this.ClientSize = new Size(592, 373);
    this.Controls.Add(this.radChartView1);
    this.Name = "KLDChart";
    this.Text = "KLDReport";
    this.Load += new System.EventHandler(this.KLDChart_Load);
    this.Controls.SetChildIndex(this.radChartView1, 0);
    ((System.ComponentModel.ISupportInitialize)(this.radChartView1)).EndInit();
    this.ResumeLayout(false);
  2. Temp
    Temp avatar
    3 posts
    Member since:
    Aug 2012

    Posted 03 Sep 2012 Link to this post

    it fails on 
    this.Controls.Add(this.radchartview1);//why it fails?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 04 Sep 2012 Link to this post

    Hello,

    Thank you for writing.

    Attached you can find a sample project demonstrating how to achieve the desired scenario. If you have any additional questions, do not hesitate to write back.
     
    Regards,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top