The topic is the question, is there a way to access embedded resources folder by name dynamically via string? The closest I think I've gotten is the following code which has error "Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<string>' to 'string'", if i try to get the only folder it should return with [0] it gives error "Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<string>'" string prefix = "namespace.folder." var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames().Where(name => name.StartsWith(prefix)); Any help would be much appreciated, Smalls

Member Avatar
Member Avatar
+0 forum 3

Hi What would be a good recommendation for a practical resources on using xml, xpath and xquery? By practical I mean. Accessing values, storing files, creating set queries on xml to create a feed to push data to other applications (eg ipython, rstudio, the Web) maintaining data integrity, and transformng data types. Note I have completed the [W3c tutorials](http://www.w3schools.com/xml/). Thank you for taking time to help me. Sayth

Member Avatar
Member Avatar
+0 forum 1

I need to change the background image of a button that is declared in xaml, like this: <Button x:Name="btnBorder" Content="Moldura" Width="80" Height="80" Margin="10,6,10,6" Click="btnBorder_Click" > <Button.Background> <ImageBrush ImageSource="/Images/arrow-expand.png" AlignmentX="Center" Stretch="None" x:Name="imgSourceArrow" /> </Button.Background> </Button> and I'm trying to change the ImageSource of the ImageBrush. For that, I'm using this code in the code-behind: ImageBrush imgb = new ImageBrush(new BitmapImage(new Uri("/Resources/arrow-expand.png"))); W.btnBorder.Background = imgb; But when I run the Application, I get an error "UriFormatException was unhandled", "Invalid Uri"... How can I reference the "arrow-expand.png" image inside the resources and transform it into an Uri String to be passed into the …

Member Avatar
Member Avatar
+0 forum 1

Hello, I am struggling at trying to get custom fonts working in my application. I have added the font file to the project's resources via the 'Add Existing File...' option, and setup the following code... > FontFamily standard; Font wt; > [DllImport("gdi32.dll", ExactSpelling = true)] private static extern IntPtr AddFontMemResourceEx(IntPtr pbFont, uint cbFont, IntPtr pdv, [In] ref uint pcFonts); private Font getWetDreamsFont() { byte[] theFont = Properties.Resources.Wet_Dreamz_Medium; int length = Properties.Resources.Wet_Dreamz_Medium.Length; IntPtr ptrData = Marshal.AllocCoTaskMem(length); Marshal.Copy(theFont, 0, ptrData, length); uint cFonts = 0; AddFontMemResourceEx(ptrData, (uint)theFont.Length, IntPtr.Zero, ref cFonts); PrivateFontCollection pfc = new PrivateFontCollection(); pfc.AddMemoryFont(ptrData, length); Marshal.FreeCoTaskMem(ptrData); standard = pfc.Families[0]; wt …

Member Avatar
Member Avatar
+0 forum 1

hello , i have this problem i cant figure if it from the gloable resources or in the event itself, so i am using 2 languages in my website's pages, one language which is not the defualt is working very well ,but the english language mode it isnt , so here i have help images beside the control that opens a small dialog contains the help text , in the other language it works and the dialog is opening ,but in english even the curser's shape isnt changed to trigger event..before the controls on both languages were working fine! i …

Member Avatar
Member Avatar
+0 forum 2

In the following function, the first debug output line ("debugPut"), produces what seems like a valid result: X: 427 Y: 197src=http://www.mygameslab.com/Switch/settingsScreen.png and even pasting the image link itself correctly displays the screen graphics. However, the screen never displays and the next debug text which was supposed to print "Kukuriiiiiiku" doesn't seem to print anything - which implies to me that settingsScr never gets triggered. Any idea what could be causing this? Many thanks in advance if you try to help! ------------------------ function handleSettings() //Handles the settings screen { var settingsX = Math.floor((xSize-settingsScr.width)/2); //the centered X location of the settings window …

Member Avatar
Member Avatar
+0 forum 2

I am new to web development, now i want to learn javascript for web development and plugins development, please tell me good sites for learn javascript, "GOOD SITE MEANS REAL TIME EXAMPLES FOR EVERY LESSONS AND TUTORIALS"

Member Avatar
Member Avatar
+0 forum 1

[Free SEO Resources](http://www.freeseoresources.in) have a huge list of new and free directory submission sites, social bookmarking sites, classifieds or ads, yellow page or business listing sites, articles and press releases. Submit and increase traffic and back link in search engines.

Member Avatar
Member Avatar
+0 forum 6

Hello! I got a neaty tricky situation here.. I have a picturebox1 and listbox1 and a few items in listbox1. I got images in resources.resx (bmp) and want to load different images depending on what index is selected.. I wanted for it to be something like this.. Bitmap bmp = Properties.Resources.Image_ + listBox1.SelectedIndex; pictureBox1.Image = bmp; as my images are named Image_0, Image_1, Image_2 and so on.. I wanted the number of the index to get to the Image_* so that I don't have to rewrite the code for each image.. how can I do that?

Member Avatar
Member Avatar
+0 forum 4

Hi all, Wondering if anyone could help - I have a project I'm working on - part of it involves loading a list of resource files at runtime. I can hardcode each file and use the ClassLoader.getResource("....") to get each file, but I was wondering is there a way to search by regex e.g. return a list of all files that match *.json? The files are all included in the "src/main/resource" folder (I'm using Intellij 12) Any advice or pointers is much apreciated :)

Member Avatar
Member Avatar
+0 forum 1

I am trying to play a wav file form a projects resources. I found this example: [Click Here](http://www.daniweb.com/software-development/csharp/code/258293/add-sound-file-into-resource-and-access-it.-in-.net-c) I imported two wav files per instructions named "Button.wav" and "Stop.wav". I commented out this line `Stream soundStream;` because it did not seem to belong. When I run the code the sound files do not play, but I do get the "Windows Ding" sound. This is issue is not critical, just a proff of principle for me at this point. fyi... I tried it with and without `Stream soundStream;` before posting. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using …

Member Avatar
Member Avatar
+0 forum 9

i want to know what IDE, basic knowledge of language is needed for development of android apps?

Member Avatar
Member Avatar
+0 forum 5

Can you help me about inserting video in resources of visual basic and how to call it and play in my media player in a form..because i have media player in my project and my problem is how can i insert video and call it from resources... i hope you can help me..Thanks a lot..!

Member Avatar
Member Avatar
+0 forum 4

Is it bad for a program to have so many resources loaded on the project? I am planning to add some for the project but this thought crossed my mind. Also, I have other forms that have a backround image and I really felt it slowing down while working on Design time. Any suggestions?

Member Avatar
Member Avatar
+0 forum 3

Hello my name is Chris. I am in the process of designing a website for web tutorials, articles and resources based around web design and coding and articles on various web based topics. I would like a list of useful resources which people can use to learn and develop their web design skills. I have the obvious resource of w3schools which I know is very useful and I will also be listing Daniweb but I would like people's help to suggest other resources to list, this can be proffesional or even personal websites, I just want to help people on …

Member Avatar
Member Avatar
+0 forum 1

Hi, At the moment I'm learning Jquery and I'm using youtube for my tutorials which is great. I've downloaded the Jquery toolkit and I'm just playing with it. Just wondering what are the best resources to use? What do you use?

Member Avatar
Member Avatar
+0 forum 1

Well i created small different projects and then in the end i needed to put all those projects in one i added them by right c clicking on my project name under solution explorer all were fine except one that im facing with duplicate resource parameters...this is the error im getting The item "obj\Debug\Game.Resources.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. These are the items of my solution explorer.... ![130](/attachments/large/2/130.jpg "130") and these are the files in my obj folder ![211](/attachments/large/2/211.jpg "211") please help...

Member Avatar
Member Avatar
+0 forum 1

Can someone give me some resources (books, online tutorials, etc.) on algorithms for 2D collision detection? I've searched a little, and all the ones I can find are for 3D collision detection. Thanks in advance. EDIT: Just to clarify, I know [I]how[/I] to do collision detection, just not efficiently.

Member Avatar
Member Avatar
+0 forum 10

Color custom cursor appears to be black when I run the program. The color custom cursor is imported from desktop by using Resources in vb.net. When I run the program the cursor turns out to be black. HOW DO I FIX IT? [CODE]Dim ms As New System.IO.MemoryStream(My.Resources.Cursor1) Button1.Cursor = New Cursor(ms)[/CODE]

Member Avatar
Member Avatar
+0 forum 2

Hi there I have made and run several different graphics programs and applications. The applications I have made so far always use the full processor and graphics card available. The game for instance may run at 5000fps or some really high number. I am assuming this is not how games and graphics applications run in the real world. how do specify what speed or resources to allocate to a specific task? I have done things such as time based movement and looked at framelocking, but this still tends to use about 100% resources when its not truly required. Thanks for …

Member Avatar
Member Avatar
+0 forum 2

Hello, My friend and I are learning to program by creating and solving little challenges for each other. In the most recent one, he hid something in the resources of his program. I can find and save the resource off manually using .NET Reflector; but I am trying to do this in a programmatic fashion with C# and not having much luck. It seems access to resources can be gained via the Assembly object (maybe?) but I haven't been able to use this approach for accessing external files, only the currently executing program. What objects and methods do I need …

Member Avatar
Member Avatar
+0 forum 2

Hi, In what way the Visual Studio generates the 'full resources names' from control resource tag in aspx file? For expample in .aspx file I have a textBox control with resource tag: [CODE]meta:resourcekey="ASPxComboBoxResource5[/CODE]. In resx file I could find this: [CODE]ASPxComboBoxResource5.DisplayFormatString, ASPxComboBoxResource5.DropDownButton.Text, ASPxComboBoxResource5.DropDownButton.ToolTip, ASPxComboBoxResource5.ItemImage.AlternateText, ASPxComboBoxResource5.ItemImage.DescriptionUrl, ASPxComboBoxResource5.LoadingPanelImage.AlternateText[/CODE] and so one... I want to generate resources names with their properties as above manually(progrmatically) from external aspx file(or dll) where the resources tags already exists. In other words I want to know which control( or page) property requires localization. In my application(it is a WebSite) I don't have any LocalizableAttributes at my controls …

Member Avatar
+0 forum 0

Hello everybody. I've a question about resources: When can we use <%= %> and when use <%$ %>? what is deffernce between them? the question is about this code:<%= GetGlobalResourceObject("LangResource", "Map")%> and <%$ Resources:LangResource, Map%>

Member Avatar
+0 forum 0

Hi guys, I am writing a small application which needs to load some images, and other resources. I am currently trying to find the best way to package these resources in my application. I have looked at some examples, I but I have been having trouble understanding them, and many seem to be image limited. Right now the way I want my program to work, is to have it load one of the randomly selected .zmap 's that exist in a folder. Unfortunately I don't know where in my files should be put in the file structure. I've attached an …

Member Avatar
Member Avatar
+0 forum 3

Hello friends, [I][B]"The trend that will most dramatically impact the shape & deployment of the IT workforce is cloud labour."[/B][/I] Interesting Article: [URL="http://www.computerworlduk.com/in-depth/careers/3236976/the-shape-of-the-it-workforce-in-2020/"]http://www.computerworlduk.com/in-depth/careers/3236976/the-shape-of-the-it-workforce-in-2020/[/URL] What is your take on this? Does Cloud Labour have the potential to become the new workforce? Thanks Ramy Stuart

Member Avatar
Member Avatar
+0 forum 1

Hy, I have a .properties file with a key-value defined like this: [icode]my_property.value=text text text bla bla bla {0} qwerty {1}.[/icode] I need to know what class should I use if I want to read the value and insert parameters in {0} and {1}. In the past I used to work with this, but I cannot remember what class I used to solve this. Thanks in advance! BR, end3r

Member Avatar
Member Avatar
+0 forum 7

Hey there, I've been attempting some Win32 programming for a while now, but I just can't seem to find a function where I can get the HWND by the resource ID. Just an example: [CODE] CreateWindowEx(NULL, L"BUTTON", text, WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL); HWND btn = getHWNDFromResource((HMENU)IDC_BUTTON_OK); // What function should I use here? [/CODE] This is just example code, and not my real code, it's used in a diffrent way in my program. getHWNDFromResource is a non-existant function and I hope to hear from you how I actually should solve this problem. Hope to hear …

Member Avatar
Member Avatar
+0 forum 1

Hello, some of my Friends, and I decided to make a Media player using Java just for the fun of it. here are my Questions, #1: is it possible using Java ? or should I use a different language? #2: the process of Reading||Displaying||Viewing Video files is called ? #3: any good resources to learn from ? Thank you.

Member Avatar
Member Avatar
+0 forum 5

Can anyone tell me the best free sites with Christmas cards, templates and games? It is urgent! Please HELP!!! Please HELP!!!

Member Avatar
Member Avatar
+0 forum 3

There are thousands of blogs and sources to learn about social media, but among this clutter, where are the best resources to learn and keep up about social media? I will start with Mashable, DaniWeb (of course), and eMarketer. Where else would you say?

Member Avatar
Member Avatar
+0 forum 4

The End.