I have a template for a ListBox. In the ListBox I have a template on the ListBoxItems. I want to disable some of these items (I am still working on what I want to use to make the "event" fire, so I have just put in IsSelected for now)
My issue is that I need to get at some of the data for the ListBoxItem to know if it should be disabl...
I'm working on localizing an app I've written in C#.
Everything seems to be working nicely, using satellite resource assemblies to translate each form's strings (as per this tutorial: http://msdn.microsoft.com/en-us/library/y99d1cd3%28VS.71%29.aspx)
However, the application will ultimately require quite a number of languages, which mea...
I've started as a developer a few months ago (c#/vb.net) and I am keeping a folder in my "pendrive" (not really a pendrive) of all the sourcecodes that i modify, with all problems i solve, and solutions i create (profissionally).
That may somehow violate the policy of where i work, because everything i do is their legal and intellectual ...
I'd like to create a resource file (in te process of preparing for deployment), filling it with certain settings (big xml structure) and some texts but I'm not sure how to go about doing that.
I did find some examples using ResxResourceWriter but when trying to open it cannot find the resource-key. here's what I have so far :
priva...
Hi everyone!
I've started Android programming recently so bear with me :)
I develop an app which has all of its content stored in database.sql file.
I've implemented a subclass of SQLiteOpenHelper and added database.sql to my project assets.
public class DBHelper extends SQLiteOpenHelper
{
public DBHelper (Context ctx)
{
super(ctx, ...
Hi,
I have a project A, which contains some java files and a classpath resource R.txt. Within the project I use ClassLoader.getSystemResource("R.txt"); to retrieve R.txt.
Then I have a project B which includes project A's jar-file. Now getSystemResource("R.txt") wont find the textfile (and yes, it's still in the root of the jar file)...
Where is the best location to place resource strings? Does it depend on scope? Currently most of our strings are being placed at the project level, but certain strings are only needed for one form. My thoughts would be that these strings should be placed as close to their use as possible.
EDIT: This is a WinForms question. I've ad...
I'm going to briefly explain what I want my program to do.
I have a lot of Images on my form and I want the image source to change on MouseEnter event.
So, if a user moves the mouse over the button, I'd like the button to appear to be glowing. Of course I've made two images for the Image control. One normal, and one glowing. I'm trying...
I'm doing this:
<Image Grid.Column="0" Grid.Row="0" x:Name="Andromeda" Source="/Resources/64px-Andromedahero.gif" />
But it's just not working. :S
Here's a screenshot of the file/folder heirarchy. Any help?
...
Is there a platform independent resource system for C++ like the one that comes with Qt (but without the Qt dependency)?
I would like to access arbitrary data from within my C++ source code. That is, not only icons but also translations or shaders, etc.
Alternatively some sort of virtual file system library to access e.g. a ZIP compre...
I have a multi-module Maven project with resource files (java properties files and spring xml config files, etc.) all over the place. I'd like to create some system documentation to help new developers understand these. However, I am loath to just create static content in a web page or word document.
Currently I just place comments at...
Here's my scenario:
I have a .Net (3.5) DLL being referenced by an ASP.Net web application.
One of the classes in the DLL has a .resx file containing an error message string that ultimately gets shown by the calling .aspx page.
The DLL makes use of multiple namespaces, I've set the .resx file to the same namespace as the class that ca...
Hi everyone,
Greetings! Can anyone please kindly assist me finding a way around the following:
load an html into a UIWebView using loadHTMLString and include(using baseURL) the resources such as the CSS, image files from folders within user's Documents directory - and not from the MainBundle of the application.
I have seen tutorial...
hi all
In my application i want to add 2 images as resources
I want to use those images ,when i click yes button in my application first image will be set as wallpaper and when i click on No button in my application second image will be set as desktop wallpaper
thanks in advance
regards
...
Hi,
I am writing a java program in eclipse(galileo version). The program reads simple user data from input file specified at console command and process it.
But I am not sure where I should place this input file inside eclipse workspace, so that when I run program in eclipse and type in input file name, it can be found and program can...
The renderer for my game application is not properly resetting when I sometimes lock out of my computer and log back in. The application uses the Gamebryo engine with the CEGUI (Crazy Eddie's GUI) layer on top. When using a DirectX debugger log, I get the following messages when the application fails to reset.
00004805 18156.43750000 [2...
Hi all,
I'm trying to memory-map and use a largish binary data file from my iPhone bundle resources. I've added the "Resources should be file-mapped" line with a checkmark to my Info.plist. Then I'm getting the data block like this (error handling and data release omitted):
CFBundleRef bun = CFBundleGetMainBundle();
CFURLRef url = CFBu...
I've recently found the resx resources feature of C#/VS2008. However, I have trouble finding information about what they are normally used for.
For example, I want to have a "static string" defined somewhere in my project, such as a CSS class that should be used in certain circumstances. Is it a good idea to define that string as a reso...
public class Hero
{
XPathNavigator Navigator;
XPathDocument HeroInformation;
public string GetHeroIcon(string Name)
{
XDocument HeroInformation = XDocument.Load("InformationRepositories/HeroRepository/HeroInformation.xml");
return HeroInformation.Descendants(Name).Single().Element("Ic...
When should I use one or the other?
I'd like all of the files I use in my app (images, sound, xml file, etc.) to be inside of the .exe file so I don't deploy with a bunch of folders and files.
Thanks for the info.
...