【问题标题】:Hoe to reach a system function in c#如何在c#中访问系统函数
【发布时间】:2016-03-27 08:07:47
【问题描述】:

我在我的程序中使用了一个 chart1_Customize 函数,但程序没有达到它。我应该改变设计器中的某些内容吗?

函数如下:

      private void chart1_Customize (object sender, EventArgs e)
    {
        int count = 0;
        foreach (CustomLabel lbl in chart1.ChartAreas[0].AxisX.CustomLabels)
        {
            lbl.Text = range[count];
            count++;
        }   
    }

【问题讨论】:

  • 你想从哪里获得这个功能?
  • 这是一个活动,你在哪里订阅了吗?
  • 不知道怎么订阅。
  • hooking up events上查看小教程

标签: c# function charts customization designer


【解决方案1】:

也许这个链接可以帮助Customizing a chart,在这个例子中,事件是在页面加载期间添加的,我想你必须做类似的事情吗? 或者在图表的属性部分中查看事件是否连接到您的函数

【讨论】:

    猜你喜欢
    • 2011-09-16
    • 1970-01-01
    • 2013-02-08
    • 1970-01-01
    • 2019-12-19
    • 1970-01-01
    • 2019-07-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多