Saturday, 14 September 2013

C# getting "string length can not be zero" inside dialog InitializeComponent

C# getting "string length can not be zero" inside dialog InitializeComponent

I moved few dialog froms from one class library to another (drag and drop)
in the same solution (Both are c# class librarians) Then at run time I
start getting get the error inside the InitializeComponent method of
myform.Designer.cs of moved and previously exists forms in that target dll
at line similar to
this.pictureBox1.Image = global::mydll.Properties.Resources.Webster;
The exception is "string length can not be zero".
Sometimes the form will load correctly the first time but not after that.
Do you ever have issues moving forms from one project to another?
I did updated all namespaces to use the target dll namespace.
Thank you for your help.

No comments:

Post a Comment