Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Images on buttons disappear
Message
De
09/03/2006 19:10:06
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01102909
Message ID:
01102954
Vues:
17
If you want to get the image from the ImageList, then you need to set the ImageIndex property rather than set the Image property. That should work although I haven't tested it. When you set the ImageIndex property, the Image property gets set also.

~~Bonnie



>I have a form, I drop an imagelist on the form and put 2 images into it.
>
>I drop two command buttons on the form, and I set the imagelist of the buttons to the form's imagelist. I set the image of the two buttons.
>
>I see the image on the design surface, but when I run the app, the images are not visible.
>
>The images are included in the project, but not as a resource.
>
>Any ideas?
>
>Thanks,
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform