Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Embedded resource puzzler
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01192724
Message ID:
01192841
Vues:
16
>is there another way of retrieving this resource ? why is it embedded as BCCI.CustomUIControls.skin.bmp ? any help much app...

It is embedded as BCCI.CustomUIControls.skin.bmp because you probably have a folder called CustomUIControls in your BCCI project, correct?

Lately I have started adding resource files to my projects (look for it when adding a new file). I do this because VS auto generates alot of code for me.
In the code below I added a resources file called Resource1.resx to my project and added aimage file called tux.png, and here is the code I need to display the png in a picturebox in a form:
this.pictureBox1.Image = Resource1.tux;
The auto generated code looks like this:
internal static System.Drawing.Bitmap tux {
  get {
      object obj = ResourceManager.GetObject("tux", resourceCulture);
      return ((System.Drawing.Bitmap)(obj));
      }
}
Hope this helps.
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform