Loading icons via Manifestressourcestream in PocketPC 2003 SE

  • Thread starter Thread starter Stefan Mähr
  • Start date Start date
S

Stefan Mähr

Hello NG,

i've just installed the new Pocket PC Emulators for Pocket PC 2003 Second
Edition. I've started my project in debugmode and noticed that suddenly the
follwing code for loading transparent icons in the toolbar is not working
any longer
Me.imgToolbar.Images.Add(New
Icon([Assembly].GetExecutingAssembly().GetManifestResourceStream("ZinsenLigh
t.neu.ico"), 16, 16))
Is this a bug in the new emulator?
Is there a workaround?

Thanks in advance for your help.

Stefan
 
I'm having the same problem in the Pocket PC 2003 SE emulator (any
screen size). Loading the icon from the embedded resource seems to
work fine, but adding the icon to the toolbar's imagelist causes an
exception. This code works in all previous flavors of the OS (real
and emulated). Anyone know what is going on?
 
I have a workaround:
Do not assign the image list to the toolbar in InitializeComponent().
You must load the icons into the imageList BEFORE assigning the list
to the toolbar. THEN you must reassign the image index numbers for
each toolbar button (even if they were set earlier).

I'd call this a bug in 2003 SE, but who knows if it's just the
emulator or will affect real devices too.

I'm having the same problem in the Pocket PC 2003 SE emulator (any
screen size). Loading the icon from the embedded resource seems to
work fine, but adding the icon to the toolbar's imagelist causes an
exception. This code works in all previous flavors of the OS (real
and emulated). Anyone know what is going on?

Hello NG,

i've just installed the new Pocket PC Emulators for Pocket PC 2003 Second
Edition. I've started my project in debugmode and noticed that suddenly the
follwing code for loading transparent icons in the toolbar is not working
any longer
Me.imgToolbar.Images.Add(New
Icon([Assembly].GetExecutingAssembly().GetManifestResourceStream("ZinsenLigh
t.neu.ico"), 16, 16))
Is this a bug in the new emulator?
Is there a workaround?

Thanks in advance for your help.

Stefan
 
Back
Top