When you want to use an Icon as an Image, you create a new instance of the Icon object, passing the path to the icon as an argument, and then call the ToBitmap() method of the Icon to get an image.
eg.
Dim ico As New Icon("c:\test.ico") CommandButton1.Image = ico.ToBitmap
icons on command buttons
Bart Elia
Somu Thomas
you can perhaps create a custom control to do this, or do this:
select the button
in the properties of the button, look for "BackgroundImage" property.
Select the background image and you should see the image
thread moved to the appropriate forum
Arran Derbyshire
Apocarm
When you want to use an Icon as an Image, you create a new instance of the Icon object, passing the path to the icon as an argument, and then call the ToBitmap() method of the Icon to get an image.
eg.
Dim ico As New Icon("c:\test.ico")
CommandButton1.Image = ico.ToBitmap
HTH