Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jun-13 2:33am    
In what line of code?
—SA

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900