On 2007-11-10 12:51:00 -0800, iwdu15 <iw****@discussions.microsoft.comsaid:
Hi, im having a very weird problem. I can create a new project and set the
form's background to an image i made in photoshop and run the program, no
code written. the image is displayed as grayscale. i have tried many
different images, formats, and projects yet it wont work. anyone else have
this happen? it was working before (couple months ago) yet now it
wont....thanks
Very odd. Typically, we might see a question in this newsgroup asking
how to accomplish the behavior you're seeing, not how to avoid it. :)
My first guess would be that there's something unusual about the image
you saved, but you say you've tried different images and formats. Most
image formats don't support alternative representations within the same
file (e.g. a color version and a grayscale one) so presumably your
tests would rule that out as a possibility.
So, given that, I'd say that you really need to post the code.
Assuming there's nothing wrong with the image itself, you either have
something wrong with your own code, or something's broken with your
..NET installation. You can rule out the latter by trying to same
compiled executable on a different computer. If that leaves only the
former, then without looking at your code it would be very hard to
answer the question.
Make sure that you post a concise-but-complete sample of code. Posting
just the line that sets the background isn't likely to be useful.
Unless you already know for sure what area of your code is the problem
(and if you do, you probably wouldn't be posting here), you need to
post all of it. Make sure you've removed any code that is not directly
related to the problem though (i.e. make the sample "concise").
Pete