矩形'{X = 0,Y = 0,宽度= 0,高度= 20}'的宽度或高度不能等于0。 [英] Rectangle '{X=0,Y=0,Width=0,Height=20}' cannot have a width or height equal to 0.

查看:113
本文介绍了矩形'{X = 0,Y = 0,宽度= 0,高度= 20}'的宽度或高度不能等于0。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在Windows应用程序中显示表单时出现以下异常。



ObjFrmMain.Show()





矩形'{X = 0,Y = 0,宽度= 0,高度= 20 }'的宽度或高度不能等于0。



请帮忙解决这个问题。



谢谢,

Arunachalam M.

Hi,

I got the following exception when showing form in the windows application.

ObjFrmMain.Show()


Rectangle '{X=0,Y=0,Width=0,Height=20}' cannot have a width or height equal to 0.

Please help to resolve this.

Thanks,
Arunachalam M.

推荐答案

你没有真正展示抛出异常的代码行。但显然,零宽度的 Rectangle 没有意义,在您尝试使用它的地方不允许。使用一些合理的宽度



-SA
You did not really show then line of code where the exception was thrown. But apparently, Rectangle with zero width makes no sense and not allowed where you tried to use it. Use some reasonable Width.

—SA

这篇关于矩形'{X = 0,Y = 0,宽度= 0,高度= 20}'的宽度或高度不能等于0。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆