System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); string[] s = asm.GetManifestResourceNames(); // extract names of all embedded resources for (int i = 0; i <= s.GetUpperBound(0); i++) // wind through all available resources if (s[i].IndexOf("palette") > 0) // if we find the one we want _ColorBitmap = new Bitmap(asm.GetManifestResourceStream(s[i])); // assign that resource for use into a local variable
© Copyright 2010 Pocket PC Controls.com Theme Design by Bryan Bell newtelligence dasBlog 1.9.6264.0 | Page rendered at Friday, July 30, 2010 6:25:41 PM UTC Pick a theme: BlogXP calmBlue Candid Blue dasBlog Discreet Blog Blue Elegante essence Just Html kubrick MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2