G
Guest
This should be painfully simple but I have spent two days on it and I can't figure it out. I am NEW to vb.net, so please forgive my ignorance
I have a label that I assign an image to through an imagelist index
Label1.Image() = ImageList1.Images(3
This works fine and as expected. In the MouseEnter event I want to check the index of the imagelist to see what image is being displayed and possibly change it
If Label1.ImageIndex = 0 The
Label1.Image() = ImageList1.Images(3
Els
Label1.Image() = ImageList1.Images(0
End I
but this does not work. I ALWAYS get a 0 when I first enter the label then ALWAYS get a -1 from then on. If anyone can help I would greatly appreciate it
Thanks
To
I have a label that I assign an image to through an imagelist index
Label1.Image() = ImageList1.Images(3
This works fine and as expected. In the MouseEnter event I want to check the index of the imagelist to see what image is being displayed and possibly change it
If Label1.ImageIndex = 0 The
Label1.Image() = ImageList1.Images(3
Els
Label1.Image() = ImageList1.Images(0
End I
but this does not work. I ALWAYS get a 0 when I first enter the label then ALWAYS get a -1 from then on. If anyone can help I would greatly appreciate it
Thanks
To