Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Embedded .jpg
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00774923
Message ID:
00774946
Vues:
17
I have been using code like this in an event handler on the form to get to those embedded resources:

Bitmap bmp = new Bitmap(this.GetType(),"InspectionForm.gif");

P.S. This article from Chris Sells pretty well tells you everything you need to know about resources on winforms: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms02202003.asp

>I've add some .jpg's to my project as an "embedded resource". I'm running into some problems using those.
>
>I'm not sure what to type to use for the "class to extract the resouce" in my Bitmap contructor.
>
>Any help would be appreciated.
>
>Thanks,
>Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform