F
Frankie D.
I have got the following message in the designer window if I try to save my
form.
"Code generation for property 'MenuImage' failed. Error was: Object
reference not set to an instance of an object.
MenuImage is a property of NCTMenuItem object and its value is set to "none"
in the property window int the designer. The definition of the property is in
an other assembly (NCTlib.dll, Softkey.cs)and looks like the following:
private Image menuImage = null;
public Image MenuImage
{
get
{
return menuImage;
}
set
{
menuImage = value;
}
}
I think the designer try to create the following line in the
myForm.designer.cs file and this operation fails at design time:
this.miFile.MenuImage =
((System.Drawing.Image)(resources.GetObject("miFile.MenuImage")));
Sometimes after I have changed Softkey.cs, for a short time everything is
good in the designer window of MyForm.
Some project data:
CF 2.0
VS 2008 SP1
I have found the description of the same error, but there was no answer for
my problem:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=175236&SiteID=1
Please help!
Thanks in advance,
Frankie
form.
"Code generation for property 'MenuImage' failed. Error was: Object
reference not set to an instance of an object.
MenuImage is a property of NCTMenuItem object and its value is set to "none"
in the property window int the designer. The definition of the property is in
an other assembly (NCTlib.dll, Softkey.cs)and looks like the following:
private Image menuImage = null;
public Image MenuImage
{
get
{
return menuImage;
}
set
{
menuImage = value;
}
}
I think the designer try to create the following line in the
myForm.designer.cs file and this operation fails at design time:
this.miFile.MenuImage =
((System.Drawing.Image)(resources.GetObject("miFile.MenuImage")));
Sometimes after I have changed Softkey.cs, for a short time everything is
good in the designer window of MyForm.
Some project data:
CF 2.0
VS 2008 SP1
I have found the description of the same error, but there was no answer for
my problem:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=175236&SiteID=1
Please help!
Thanks in advance,
Frankie