110,566
社区成员
发帖
与我相关
我的任务
分享
using (Graphics objGraphics = this.CreateGraphics)
{
//其它代码
}
或者用个try。。。catch。。。。finally
try
{
}
catch()
{
}
finally
{
if(objGraphics != null)
((IDisposable)objGraphics).Dispose();
}