Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

PoorAngel 2004-09-28 03:52:01
g.DrawString("单位:万套",new Font("宋体",9), Brushes.Black,new Point(525,12)) ;
for(int i = 0 ; i < sMoth.Length ; i++)
{
g.DrawRectangle(Pens.Black,myRec.X,myRec.Y,20,10);
//绘制小方块
g.FillRectangle(new SolidBrush(GetColor(i)),myRec.X,myRec.Y,20,10);
//填充小方块
//g.DrawString(sMoth[i].ToString(),new Font("宋体",9),Brushes.Black,myDec);
g.DrawString(sMoth[i].ToString(),new Font("宋体",9), Brushes.Black ,new Point(560,26)) ;

//绘制小方块右边的文字
myRec.Y += 15 ;
myDec.Y += 15 ;
}
...全文
87 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧