D
daemonwhittenburg
As mention I've searched the forums...
I'm just trying to have a simple toolbar control with a toolbarbutton
added to it...
I have an imagelist control that has an image added to it...
I think the problem may be in the way the images are added to the
imagelist control...
1) I tried doing
Me.ImageList1.Images.Add(CType(resources.GetObject("resource"),
System.Drawing.Image))
When running the app on the pocket pc, i can see that there is a button
added to the toolbar but there is no image showing...I can click and
hold and I see that the button is depressed, but I don't see the image
and it is the wrong size...
2) I tried doing
Dim oIcon As New
Icon(Me.GetType.Module.Assembly.GetManifestResourceStream("ImageList.search.gif"))
Me.ImageList1.Images.Add(oIcon)
I know that "ImageList.search.gif" is a valid name, because I can get
this from Me.GetType.Module.Assembly.GetManifestResourceNames
However while running in debug it tells me that I have an invalid
parameter...
I'm doing something wrong, could anyone help?
Thanks
I'm just trying to have a simple toolbar control with a toolbarbutton
added to it...
I have an imagelist control that has an image added to it...
I think the problem may be in the way the images are added to the
imagelist control...
1) I tried doing
Me.ImageList1.Images.Add(CType(resources.GetObject("resource"),
System.Drawing.Image))
When running the app on the pocket pc, i can see that there is a button
added to the toolbar but there is no image showing...I can click and
hold and I see that the button is depressed, but I don't see the image
and it is the wrong size...
2) I tried doing
Dim oIcon As New
Icon(Me.GetType.Module.Assembly.GetManifestResourceStream("ImageList.search.gif"))
Me.ImageList1.Images.Add(oIcon)
I know that "ImageList.search.gif" is a valid name, because I can get
this from Me.GetType.Module.Assembly.GetManifestResourceNames
However while running in debug it tells me that I have an invalid
parameter...
I'm doing something wrong, could anyone help?
Thanks