D
dantheman
Hi All,
here it goes,
I have created a usercontrol "image button" and it all work fine except
for one strange thing, when i drag the control to a form "smart device
that is" and then save that form i get this error
Code generation for property 'Image' failed.
Error was: 'Object reference not set to an instance of an object.'
this only happends the first time i drag the control to a form and save
the form after that error if add more controls other then my image
button i save again it's ok
in the property designer the image property is set to (none)
now if in my constructor i had this line
this.image = new Bitmap(21, 21);
it all works ok
any idea y this is appening
here it goes,
I have created a usercontrol "image button" and it all work fine except
for one strange thing, when i drag the control to a form "smart device
that is" and then save that form i get this error
Code generation for property 'Image' failed.
Error was: 'Object reference not set to an instance of an object.'
this only happends the first time i drag the control to a form and save
the form after that error if add more controls other then my image
button i save again it's ok
in the property designer the image property is set to (none)
now if in my constructor i had this line
this.image = new Bitmap(21, 21);
it all works ok
any idea y this is appening