Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button and Images
Message
De
30/09/2004 11:40:12
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00946621
Message ID:
00947541
Vues:
12
>this.Image = System.Drawing.Image.FromFile("c:\\MyImage.ico");
>
>Hi Bonnie, thanks for the info, but how do i do it without an absolute path?

Sorry Shawn, I don't know the answer. When you do it visually, the Images get stored in the .Resx when you create the ImageList from the Property Sheet, so there's no issue about finding them at runtime. I've not actually done it in code for real, I've only done it in a little test application to see whether I could get it to work programmatically.

Sorry =(

~~Bonnie
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