K
Kent
I'm stuck on something that I'm sure is simple but I can't find an easy
answer. I want a set of clickable icons on a form. I figured using a
PictureBox would be the easiest method but getting the image loaded from an
icon file is a problem.
With VS2003 I was able to create a Graphics object in the PictureBox paint
event and use DrawIcon to display the icon. I figured there must be a
better way to do this but never found it (since the Icon.ToBitmap() method
isn't supported in CF). Anyway, in VS2005 I get this warning:
"Members not supported by the device platform should not be called:
System.Windows.Forms.PictureBox.add_Paint is not a supported method in this
Platform."
Two questions:
1. Is there a better way to load my icon from a resource into a PictureBox?
2. Is the paint event really no longer supported for the PictureBox in CF
(if it ever was)?
Thanks.
answer. I want a set of clickable icons on a form. I figured using a
PictureBox would be the easiest method but getting the image loaded from an
icon file is a problem.
With VS2003 I was able to create a Graphics object in the PictureBox paint
event and use DrawIcon to display the icon. I figured there must be a
better way to do this but never found it (since the Icon.ToBitmap() method
isn't supported in CF). Anyway, in VS2005 I get this warning:
"Members not supported by the device platform should not be called:
System.Windows.Forms.PictureBox.add_Paint is not a supported method in this
Platform."
Two questions:
1. Is there a better way to load my icon from a resource into a PictureBox?
2. Is the paint event really no longer supported for the PictureBox in CF
(if it ever was)?
Thanks.