B
Bjoern Feld
Hi,
I am fairly new to the .NET CF. I just managed to create my own custon=m
controls with designer support.
I ran into a problem embedding a bitmap resource:
I wanto to display a small bmp as logo. I added the bitmap to my solution
and set the build action to "embedded resource". I tried loading the image
in my constructor using GetManifestRes... The code compiles fine. but trying
to place the control on a form in designer returns an Exception (stream
cannot be null). Putting the bmp file name in "" bitmap constructor work for
the designer, but not when I deploy my test app and the control.
How do I embed a resource I tried looking up the .resx files. But I cannot
find a way to get my bitmap into it. Using the ResGen.exe seems to create
only .Resx files for the full .Net framework and seems to be not compatible
with CF framework.
TIA,
Bjoern
I am fairly new to the .NET CF. I just managed to create my own custon=m
controls with designer support.
I ran into a problem embedding a bitmap resource:
I wanto to display a small bmp as logo. I added the bitmap to my solution
and set the build action to "embedded resource". I tried loading the image
in my constructor using GetManifestRes... The code compiles fine. but trying
to place the control on a form in designer returns an Exception (stream
cannot be null). Putting the bmp file name in "" bitmap constructor work for
the designer, but not when I deploy my test app and the control.
How do I embed a resource I tried looking up the .resx files. But I cannot
find a way to get my bitmap into it. Using the ResGen.exe seems to create
only .Resx files for the full .Net framework and seems to be not compatible
with CF framework.
TIA,
Bjoern