Yup... same thing with a completely new project...
I even tried to copy the System.Drawing.dll for the Compact Framework SDK
(it works fine for standard .NET application) from the machine that worked,
to no avail.
I'll capture a snapshot from the very same form, from the very same project,
on both Visual Studio IDE's and let you see what's up. Machine 'A' is the
one on which it works (with Luna Blue theme), Machine 'B' is the one where
it doesn't work (with 'Slate' theme). Both machines have the same hardware
config aswell. Ah, it's a slow server, bear with it (don't want to add
attachments here)
Machine 'A', the imagelist shows correctly the thumbnails, and lets me add
or remove images:
http://www.vmslabs.com/usr/vserror/working_imagelist.gif
Machine 'B', the imagelist doesn't shows the thumbnails, and will throw a
null reference exception when pressing 'Add' (Agregar) button:
http://www.vmslabs.com/usr/vserror/notworking_imagelist.gif
Machine 'A', the picturebox correctly allows me to click on the ellipsis
button on image, and opens up a file dialog to insert a picture. Works
flawlessly:
http://www.vmslabs.com/usr/vserror/working_picturebox.gif
Machine 'B', the picturebox works, and if I load a form with an already
inserted image, it works fine and shows the result... there are also no
problems at runtime, BUT, the image property appears disabled so I can't
insert an image to it:
http://www.vmslabs.com/usr/vserror/notworking_picturebox.gif
The 'disabled' property extends to all components which include a
System.Drawing.Image as a property (it's disabled on them all, no matter
which the property or the control is).
So far, for all my bitmap needs, I just use VNC on machine 'A', and insert
them in the other machine, then reload the file (along with the .resx) on
machine 'B' (which is my main work machine, so this gets on my nerves).
The rest works perfectly fine, the emulator works fine, device transport
works fine, I can debug with no problem, no other errors whatsoever, and in
runtime, the program works as it should.
Anyone had any similar problem and know how to fix it? I'm really
desesperate!!
Thank you,
- Javier Campos
PS: The references are ok, on these snapshots, it's exactly the same project
(loaded from the very same folder), and the references point exactly to the
same DLL's.... I also checked all the DLL's that it uses in both the GAC
(which shouldn't matter for this, as it's not using the GAC for Smart Device
Applications), and in /Program Files/Microsoft Visual Studio .NET
2003/Compact Framework SDK/ (which is where the 'GAC' for smart devices is),
they are all the same versions, and I even tried overwriting one with
another, with no different results whatsoever.