473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Form Background not properly displayed

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

-iwdu15
Nov 10 '07 #1
3 1164
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

Nov 10 '07 #2
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").
thats the problem, theres no code in the program, its a blank program and
the only thing i did was set the background property to that of an image in
the resources. i dont understand this because another program i wrote that
uses the same image, just with different colors, works perfectly fine. i did
install the VS2008 beta and uninstalled it later, so might that have
something to do with it? thanks

--iwdu15
Nov 10 '07 #3
On 2007-11-10 15:20:00 -0800, iwdu15 <iw****@discussions.microsoft.comsaid:
thats the problem, theres no code in the program, its a blank program and
the only thing i did was set the background property to that of an image in
the resources.
There's no such thing as "a blank program" that actually does
something, like showing a form. You may not have written some code,
but the VS Designer did. If that's the only code you have to show,
that's fine. It's still the relevant code.
i dont understand this because another program i wrote that
uses the same image, just with different colors, works perfectly fine. i did
install the VS2008 beta and uninstalled it later, so might that have
something to do with it?
Sure, it _might_ have something to do with it. That's why I suggested
running the same executable on a different computer. If the same
problem happens on a different computer (especially one that hasn't
been through the same "install 2008 beta and uninstall" routine), then
that means the problem is in the code. If it doesn't happen on a
different computer, then it's likely you just have a problem with your
..NET installation.

In other words, my previous post has all of the information you need to
proceed with debugging the problem.

Pete

Nov 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
0
by: Miro | last post by:
Something I have run into using VB Express 2005 with mdi forms. I have not been able to re-create this but I'll let out the information on how I came about fixing this. As it cost me about 4...
13
by: Edwin Smith | last post by:
I have a form which displays a DataGridView table generated with the VS2005 tools. The database is a Pervasive v.9 with an ODBC driver. The DataGridView works great except when I'm done and I...
8
by: Phil Latio | last post by:
I've been creating an application over the last few weeks and generally pleased with what I have produced but one area is irritating me, form validation. At the moment the forms are simply...
2
by: ravisuguna | last post by:
Hi, I have a php page which has some checkboxes ,textfields and values.If I select a checkbox ,a particular value will be displayed in a textfield.I have a "go"button in the same page.I want the...
2
by: beemomo | last post by:
hi everyone! i am using an active x control : date time picker in an access form that bound to date field in a table. Whenever it is displayed on my machine, the control can be displayed and...
6
by: shapper | last post by:
Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html I am having a few problems with my CSS: 1. Restyling the Select
4
by: robertallenpayne | last post by:
I have been asked to develop an application in Access for work. This application must have a simple user interface because the folks using it are not "database people" - their words, not mine. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.