resources

How to use a defined brush resource in XAML, from C#

So far I have this <UserControl.Resource> <LinearGradientBrush x:Key="KeyDownBrush" .....> Now I would like to access this defined resource when a key is pressed and replace the current objects fill with the KeyDownBrush, in C#. I've tried this.Resource.Contains("KeyDownPress") and have been able to get True returned so I presume I ...

image hiding in my xcode project

Hey guys, I finally finished my app which i'm excited about. One last thing that bugs me is that when i run my app, the first photo shown is not the image i want. I go to delete this image but it's nowhere to be found (not in resources or outside on desktop) Is there a special folder where it retains and copy images to the project for s...

Where we can find database designs schemes (ERD or other) for very common use cases?

The question is more simple than what it looks. There are many use cases that are well known and people have put a lot of thought into them. For example: Audit trailing, login users, and so on. We are looking for a good resource site that present the DB design for those common use cases. ...

do you rely on your memory or consult references and use a lot of intellisense?

I am asking because I am living my 40s. I have noticed I do not code as much as I use to when I was in my 20s and part of my 30s. Basically, today I dedicate more time to analysis and design, then I give away the design to programmers and they do the coding. But, this have affected my coding productivity because I must consult references...

How to build a resource library from rc files in Delphi 2009?

I need to build a resource DLL from a supplied rc file. Here's what I did upto Delphi 2007: library ResourceTest; {$R '..\..\src\Media\TestBitmaps.res' '..\..\src\Media\TestBitmaps.rc'} {$R *.res} begin end. Compiling this project would create the res file from the rc file and link it in the final DLL. In Delphi 2009 it doesn't wor...

Set WPF Resources in C#

How do I do the following via C# (as I'm generating ListViews programatically): <ListView> <ListView.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/> <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent"/> </ListView.Resources> ... ...

Are there any performance issues or caveats with resource (.resx) files?

Resource files seem great for localization of labels and messages, but are they perfect? For example: Is there a better solution if there is a huge amount of resources? Like 100,000 strings in a .resx file? (Theoretically, I do not actually have this problem) Is this a good method for storing the other types of data, such as Images, ...

Initializing resources based on route and/or module

I'm using Zend Framework 1.8/1.9's Zend_Application and the resource system to initilize a bunch of resources. I would like to only load certain .ini files based on the module being requested – for example, loading "help.ini" if (and only if) the CMS module is requested ("/cms"). Trouble is, I'm not sure how to access the request object ...

How do I avoid reading the byte order mark (BOM) in a Resources file in Visual Studio?

I am trying to use the Visual Studio editor to create XML files in the Resources area of an Assembly in C#. The files appear perfectly correct in the XML editor and honour my schema (recognising the elements and attributes). However when I try to read them (from the Resources) they fail because they consistently have 3 spurious character...

Dynamic Scoped Resources in WPF/XAML?

I have 2 Xaml files, one containing a DataTemplate which has a resource definition for an Image brush, and the other containing a content control which presents this DataTemplate. The data template is bound to a view model class. Everything seems to work EXCEPT the ImageBrush resource, which just shows up white... Any ideas? File 1: D...

Recommended Books & Resources for VSTO

What are some good books and resources for an in depth look into VSTO? ...

Does the Intel C++ Compiler have a resource compiler?

If so, what's the name of the command line tool to compile resources? Or an example of use... I have access to the Professional suite (both Linux and Windows environment but I'm interested mainly in the Windows one), thanks in advance. ...

How can I organise my resources into folders?

I'm working with a lot of files in my resources directory and I'd like to create folders to organise them. I've made a folder of plists, but I can't access it. Here's the code that works: NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"plist"]; and the code that doesn't work: NSString *path = [[NSBund...

Can Someone explain the Purpose of the different Build Actions in VS 2008?

At first I was just looking for the difference between Resource and Embedded Resource; then I noticed all these other Build Action types: Compile, Content, Embedded Resource, ApplicationDefinition, Page, Resource, SplashScreen, and EntityDeploy. I understand some of these but some are more vague and a clearcut definition would be helpfu...

Eclipse (Galileo) : How to ignore .svn-base files or *.svn folder in Open Resource dialog ?

I am using TortoiseSVN client. I do not want to see SVN client files in Open resource dialog window. Is there any way to ignore particular folder name or file name ? I have checked following links, There are suggesting to create working set.I am not happy with that because, i have browse down to each package and select the required res...

CSS Tutorials and other resources

I have done some work with CSS- mostly for text font, color, size, etc. But I would like to develop a site completely with CSS. Does anyone know of any good CSS tutorials or other resources? Thanks! ...

Where is a good collection of freely licensed instrument .wav samples?

I require full samples for a variety of instruments. One such site that provides this resource (http://theremin.music.uiowa.edu/MIS.html) is good, but there aren't enough non-classical instruments (e.g. steel guitar, drums). I need a different resource that provides instrument samples such as ones the MIDI specification supports. Side ...

C#: Loading an embeded swf into an flash activex without a temporary file.

My project requires that my final application be completely self contained in a single exe. I am already combining the executable and dlls using ILMerge (assmebly merge utility). I am hosting an flash active x control in a C# application and I have embedded the one swf i need to load into the flash control into the c# application as an e...

How can I find all the members of a Properties.Resources in C#

I have some resources in a C# Assembly which I address by byte[] foob = Properties.Resources.foo; byte[] barb = Properties.Resources.bar; ... I would like to iterate through these resources without having to keep an index of what I have added. Is there a method that returns all the resources? ...

C#: What does MissingManifestResourceException mean and how to fix it?

The situation: I have a class library, called RT.Servers, containing a few resources (of type byte[], but I don't think that's important) The same class library contains a method which returns one of those resources I have a simple program (with a reference to that library) that only calls that single method I get a MissingManifestRe...