Home Forums WinForms controls Xceed Chart for WinForms Chart Toolbar combobox

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

    hello,

    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);

    arrButtons.Add(ChartToolbarButtons.ActiveChart);

    Help me as soon as possible.

    Thanx,
    Khushboo

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

    Xceed Support
    Member
    Post count: 5658

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

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

    Chart m_chart2 = chartControl1.Charts.Add();
    m_chart2.Name = “Point Charlt”;
    </code>

    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.