bitmaps & listview & sp1

  • Thread starter Thread starter Panhuber Astrid
  • Start date Start date
P

Panhuber Astrid

hi!

I have an application with an listview. every item in this listview has one
of three possible bitmaps (16x16, 32bpp).

The application works ok. But if I install SP1 on my device, the bitmaps
have a wrong back color (black instead of white).

Is this a known problem? how to work around this problem? I can not make
sure, which SP my customers will install on their iPAQs.

astrid
 
hi!

It's experience: You can not tell the customers, that the have to install
this SP, but must not install that SP or so. customers always do what they
want to do and then they cry out loud if something does not work as
expected...

astrid
 
I can not make sure, which SP my customers will install on their iPAQs.
Why is that?
 
Hello Astrid,

The problem that you see is due to a bug in the Designer. Designer adds
icons to an ImageList as bitmaps instead of adding them as icons. Besides,
there was a change made in the ImageList class in SP1 in order to match
desktop's behavior. That change just revealed Designer's bug.

A workaround for this problem would be to add icons to the ImageList from
code. For example:

this.imageList1.Images.Add(new
Icon(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceSt
ream("Icon.ico"), 16, 16));

Hope this helps.
Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Panhuber Astrid" <[email protected]>
| Subject: bitmaps & listview & sp1
| Date: Wed, 3 Mar 2004 14:53:48 +0100
| Lines: 14
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: mail.timbatec.com 62.47.124.178
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:47529
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| hi!
|
| I have an application with an listview. every item in this listview has
one
| of three possible bitmaps (16x16, 32bpp).
|
| The application works ok. But if I install SP1 on my device, the bitmaps
| have a wrong back color (black instead of white).
|
| Is this a known problem? how to work around this problem? I can not make
| sure, which SP my customers will install on their iPAQs.
|
| astrid
|
|
|
 
Sure, no problem.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Panhuber Astrid" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: bitmaps & listview & sp1
| Date: Thu, 4 Mar 2004 08:40:03 +0100
| Lines: 71
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: mail.timbatec.com 62.47.124.178
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:47619
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| hi!
|
| thank you! this works!
|
| thanks,
| astrid
|
| | > Hello Astrid,
| >
| > The problem that you see is due to a bug in the Designer. Designer adds
| > icons to an ImageList as bitmaps instead of adding them as icons.
Besides,
| > there was a change made in the ImageList class in SP1 in order to match
| > desktop's behavior. That change just revealed Designer's bug.
| >
| > A workaround for this problem would be to add icons to the ImageList
from
| > code. For example:
| >
| > this.imageList1.Images.Add(new
| >
|
Icon(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceSt
| > ream("Icon.ico"), 16, 16));
| >
| > Hope this helps.
| > Thank you,
| > Sergiy.
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > --------------------
| > | From: "Panhuber Astrid" <[email protected]>
| > | Subject: bitmaps & listview & sp1
| > | Date: Wed, 3 Mar 2004 14:53:48 +0100
| > | Lines: 14
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: mail.timbatec.com 62.47.124.178
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.
| > phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:47529
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | hi!
| > |
| > | I have an application with an listview. every item in this listview
has
| > one
| > | of three possible bitmaps (16x16, 32bpp).
| > |
| > | The application works ok. But if I install SP1 on my device, the
bitmaps
| > | have a wrong back color (black instead of white).
| > |
| > | Is this a known problem? how to work around this problem? I can not
make
| > | sure, which SP my customers will install on their iPAQs.
| > |
| > | astrid
| > |
| > |
| > |
| >
|
|
|
|
|
 
Back
Top