Get resource from project
-
Hi How i can retrive an resource (Bitmap for handle) from my project.Before now i handn't experince with .Net resorces and i anticipate this in the same way like in MFC projects, but there is no resource files, and i just add my bitmap inderectly to project(Project->Add New Item->Bitmap)is it correct? .And now i want to get the bitmap ID from my code. Where is a way to do so?? Thank.
-
Hi How i can retrive an resource (Bitmap for handle) from my project.Before now i handn't experince with .Net resorces and i anticipate this in the same way like in MFC projects, but there is no resource files, and i just add my bitmap inderectly to project(Project->Add New Item->Bitmap)is it correct? .And now i want to get the bitmap ID from my code. Where is a way to do so?? Thank.
Check this article out Using Resources in Your Application Part I[^] or simple search for resources or resourcemanager.
-
Check this article out Using Resources in Your Application Part I[^] or simple search for resources or resourcemanager.
-
Thank. Oddly enough, i suppose using resorces in NET became more simplest, but in oppositely it seems more complicated.
-
In .NET 2.0, it's become even easier:
// I've embedded an image named "arrow.jpg" into my resources, I can retrieve it like so:
Image myImage = Properties.Resources.arrow;Any remotely useful information on my blog will be removed immediately. Judah Himango