Home Forums WinForms controls Xceed Chart for WinForms Chart Toolbar combobox

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #18878 |


    In ChartToolbar I want in Active toolbar,5 charts.
    Bar Chart,
    Pie Chart,
    Area Chart,
    Point Chart,
    Stock Chart etc.

    how can I fill this into Active Chart ToolBar.
    i get nullreference error on clicking Active Chart ToolBar.

    My code is:

    ChartToolbarButtonsArray arrButtons = new ChartToolbarButtonsArray(nChartToolbarControl1);


    Help me as soon as possible.


    Imported from legacy forums. Posted by khushboo (had 2392 views)

    Xceed Support
    Post count: 5658

    All your charts need to be in the same ChartControl. If they all are, the ActiveChart button should be auto-populated.

    Chart m_chart1 = chartControl1.Charts[ 0 ];
    m_chart1.Name = “Line Chart”;

    Chart m_chart2 = chartControl1.Charts.Add();
    m_chart2.Name = “Point Charlt”;

    Imported from legacy forums. Posted by CharlesB (had 3154 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.