| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1313 人关注过本帖
标题:Winform chart 画曲线时报错:ThrowInvalidOperationException
只看楼主 加入收藏
xhrain
Rank: 2
等 级:论坛游民
帖 子:13
专家分:10
注 册:2009-7-19
收藏
 问题点数:0 回复次数:0 
Winform chart 画曲线时报错:ThrowInvalidOperationException
使用如下方法画曲线
Points.AddXY(x,y1)
Points.AddXY(x,y2)
Points.AddXY(x,y3)

程序代码:
  HResult=0x80131509
  Message=集合已修改;可能无法执行枚举操作。
  Source=mscorlib
  StackTrace:
   在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   在 System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   在 System.Collections.Generic.List`1.Enumerator.MoveNext()
   在 System.Windows.Forms.DataVisualization.Charting.ChartPicture.IsToolTipsEnabled()
   在 System.Windows.Forms.DataVisualization.Charting.ChartPicture.Paint(Graphics graph, Boolean paintTopLevelElementOnly)
   在 System.Windows.Forms.DataVisualization.Charting.Chart.OnPaint(PaintEventArgs e)
   在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   在 System.Windows.Forms.Control.WmPaint(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
搜索更多相关主题的帖子: System Control Message Windows Forms 
2021-09-27 14:40
快速回复:Winform chart 画曲线时报错:ThrowInvalidOperationException
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016978 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved