system.ArgumentNullException:值不能为null。参数名: image
ArgumentNullException:值不能为NULL。参数名:图像
在System.Drawing.Graphics.Drawlmage(lmage image, Int32 x, Int32 y,lnt32 width, Int32 height)
意思就是上面的image参数不能传入空值,估计是下面代码问题
gr.DrawImage(getImage(c(2)),2,2,16,16)
getImage(c(2))获取不到图片,要么c(2)这个路径不存在,或者不是图片
dim img as image = getImage(c(2))
if img is nothing then msgbox("不存在")