Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Embedded resource puzzler
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01192724
Message ID:
01192841
Views:
17
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform