molemenacer
Active member
Hi all,
I'm trying to display an icon on a toggle button with text, but the image won't show. I am trying to show the image by loading it into an image list and then referencing it.
That is my imglist - with about 8 icons
And i am trying the above code to display an image - it dosen't seem to work.
Any help would be appreciated.
Thanks
I'm trying to display an icon on a toggle button with text, but the image won't show. I am trying to show the image by loading it into an image list and then referencing it.
VB.NET:
[SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Public[/COLOR][/SIZE][SIZE=2] ImgList [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] ImageList
[/SIZE][SIZE=2]ImgList = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] ImageList
ImgList.Images.Add( LoadIcon("Play.ico") )
[/SIZE]
That is my imglist - with about 8 icons
VB.NET:
[SIZE=2]
chkAvailability.Image = ImgList.Images( 0 )
[/SIZE]
And i am trying the above code to display an image - it dosen't seem to work.
Any help would be appreciated.
Thanks