By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,376 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,376 IT Pros & Developers. It's quick & easy.

Problem with images???

P: n/a
al
Greetings,

I have this problem with any image, in any format, I include in
ToolBar Control. Those images are in-house developed. The problem is
when I include an image in a ToolBar and have its Enabled property set
to False, at runtime, the image just disappears, leaving a square
grayed area with nothing inside it. ( while it is supposed to show the
image in gray color)??
MTIA,
Grawsh
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
* gr*********@yahoo.com (al) scripsit:
I have this problem with any image, in any format, I include in
ToolBar Control. Those images are in-house developed. The problem is
when I include an image in a ToolBar and have its Enabled property set
to False, at runtime, the image just disappears, leaving a square
grayed area with nothing inside it. ( while it is supposed to show the
image in gray color)??


That's a known "limitation".

<msdn>
If the image or text has multiple colors, they display in a monochromatic gray.
</msdn>

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #2

P: n/a
Does this also happends if you have a chess-board like
image? All colors that are light will turn into grey, and
all dark color will be darker gray. Maybe your image
doe'snt contain any color that is dark enougth?

/Andreas
-----Original Message-----
Greetings,

I have this problem with any image, in any format, I include inToolBar Control. Those images are in-house developed. The problem iswhen I include an image in a ToolBar and have its Enabled property setto False, at runtime, the image just disappears, leaving a squaregrayed area with nothing inside it. ( while it is supposed to show theimage in gray color)??
MTIA,
Grawsh
.

Nov 20 '05 #3

P: n/a
Hi,
I had similar problem just few days ago. The reason for my problem was that
my toolbar was placed on a panel instead of being placed directly on the
form.
Toolbars have a limitation that they should be placed on form directly and
not on any other control. (check here:
http://msdn.microsoft.com/library/de...classtopic.asp)

If you place the toolbar directly on the form the images should show
properly.

Dino
--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings,

I have this problem with any image, in any format, I include in
ToolBar Control. Those images are in-house developed. The problem is
when I include an image in a ToolBar and have its Enabled property set
to False, at runtime, the image just disappears, leaving a square
grayed area with nothing inside it. ( while it is supposed to show the
image in gray color)??
MTIA,
Grawsh

Nov 20 '05 #4

P: n/a
al
"Andreas" <an*******@discussions.microsoft.com> wrote in message news:<0b****************************@phx.gbl>...
Does this also happends if you have a chess-board like
image? All colors that are light will turn into grey, and
all dark color will be darker gray. Maybe your image
doe'snt contain any color that is dark enougth?

/Andreas
-----Original Message-----
Greetings,

I have this problem with any image, in any format, I

include in
ToolBar Control. Those images are in-house developed. The

problem is
when I include an image in a ToolBar and have its Enabled

property set
to False, at runtime, the image just disappears, leaving

a square
grayed area with nothing inside it. ( while it is

supposed to show the
image in gray color)??
MTIA,
Grawsh
.

The strange thing is this type of behavior dosen't occure when I
import system-images (images the come with Win2k) into the toolbar.
Could I have done someting wroing when I first draw the images (they
are your basic MoveFirst and MoveLast images that I could not find in
Win2k)??

Grawsha
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.