Answered by:
can't see the buttom background image

Question
-
I am working in VB.Net 2010 on Windows 7 PC.
I applied an image to a button as its background image with Background image layout as Zoom.
This is working fine but when i changed the windows theme to HIGH CONTRAST BLACK, the Dot Net designer is not the Backgroung image of button.
Even at run-time also image is not visible. When I changed the Windows theme to some other, again background image of button got visible.
While the image property of button is working everywhere in all theme.
Anyone please tell me why background image is not visible in High contrast theme and any workaround for this?
Thanks in advance for any help
Saturday, May 8, 2010 10:09 AM
Answers
-
Imagine this:
You have an 'OK' button. There are two common ways to do this:
1) Set the text to "OK".
2) Provide an image of say a green checkmark.In case #1 the user needs to see the text "OK". In case #2 the user needs to see the image.
In either case, a "background image" is not relevant to what the user needs to see. The background image might be some gradient colored "fluff".
So Windows is assuming that only the foreground image/text is important, the background image is not.
- Marked as answer by Helen Zhou Friday, May 14, 2010 2:43 AM
Tuesday, May 11, 2010 1:40 PM
All replies
-
I can't say with certainty, but this seems logical to me. The purpose of the high contrast theme is to allow users with poor eyesight to be able to see what they need to see. They don't need to see your image, they need to read the text of the button with high clarity.
- Proposed as answer by Helen Zhou Tuesday, May 11, 2010 7:04 AM
Saturday, May 8, 2010 2:13 PM -
Yes Sir,
you are right but i am not getting why image is not visible if i sets it as background and image becomes visible if i sets it as Image property of control.
If Image property of control works then why Background Image property not works? This is the problem. I want this property because it works and scales the image with changing DPI for controls like Button in .Net.
Can you please tell me this.
Thanks for the reply
Tuesday, May 11, 2010 1:34 PM -
Imagine this:
You have an 'OK' button. There are two common ways to do this:
1) Set the text to "OK".
2) Provide an image of say a green checkmark.In case #1 the user needs to see the text "OK". In case #2 the user needs to see the image.
In either case, a "background image" is not relevant to what the user needs to see. The background image might be some gradient colored "fluff".
So Windows is assuming that only the foreground image/text is important, the background image is not.
- Marked as answer by Helen Zhou Friday, May 14, 2010 2:43 AM
Tuesday, May 11, 2010 1:40 PM