resources

Resources.getSystem().openRawResource(random.txt) returns Resource$NotFoundException

Building on 1.6 SDK4 InputStream is = Resources.getSystem().openRawResource(R.raw.vortexrules); This line is causing me no end of trouble... My R.java shows: public static final class raw { public static final int vortexrules=0x7f040000; which tells me that the compiler is recognizing the text file and the folder and setting t...

Why are LoadResource/LockResource sometimes returning concatenated resource data?

I'm working with a Visual Studio C++ project that contains a number of HTML resources. They are loaded by a method that looks like this: LPCTSTR loadHTML(HMODULE hModule, LPCTSTR sResourceName) { HRSRC hResource = FindResource(hModule, sResourceName, RT_HTML); if(!hResource) return 0; HGLOBAL hResourceData = LoadRes...

EventTrigger doesn't work on controls inside <sdk:Page.Resources>

i am using EventTrigger in silverlight application to handle some events through MVVM model, trigger is working fine on the layoutroot controls, but there are some controls inside the pages resources but the trigger is not working with them :( is there anything i should add or change the namespace or something ? here is my code <i:In...

Resources In Asp.net

Hi all. i have about 400 pages and UserControls in my asp.net website. what is the best way for keeping strings on resource file? its difficult to manage 500 local resource files and and difficult to put all strings on global resource file. what is the solution? Help Me please ...

How do you fill in a resource string at run-time?

I have an application I'd like to localise. However, the strings to be localised occasionally contain parts I'd like to provide at runtime, such as action links. For example, I have a string like this: Please <a href="/help">click here</a> for help. I can't just split it into two resources since in different languages it'll be in a diff...

combining resources in xaml

I have a window that is composed of several UserControls, three of which are DataGrids. It looks like this: <DockPanel LastChildFill="True"> <local:MainRibbon DockPanel.Dock="Top" .../> <local:LeaveTimeActivityGrid ... /> <local:AdminActivityGrid ... /> <local:TotalsFooter ... /> <local:ProjectActivityGrid ... />...

Good resources for Winforms development

What are some good resources for winforms development? For example, when you have to have a bunch of different controls and event handlers on one form. Do you use partial classes, user controls, special attributes,...? How do you handle communication between user controls - only with events? Are there any patterns you can use? ...

Referring to a brush resource in a VisualState ColorAnimation

I'm trying to style the Calendar control and need the buttons to adopt the colors we already have defined as named resources. But the storyboards require colors in the ColorAnimation, and I'm not sure how to use a brush there. For example, I need to turn this <VisualState x:Name="MouseOver"> <Storyboard> <ColorAnimation Duration="00...

Add images, string file to static library in iPhone

I want to make a static library which basically displays some views and button. My client wants this to be distributed as a library to be used by other iPhone developers. My doubts are Can we add images and other resources to the library .a file? How can we include localization to this static library?(localizable.strings??) ...

How can I use external article in my website?

I would like to know if it is legal to use external article on my website? I think that if I reference the author it should be OK, but I don't know where to find information about this. Any help would be very much appreciated. ...

Spring map entries versus resources

Consider a factory bean. It takes a single property of type Map<String, Object>. It carefully checks all the Objects for 'instanceof Resource' and does resource processing appropriately. I configure this bean like: <bean id='fact' class='my.class'> <property name='map'> <map> <entry key="x" value="file:/WEB-INF/foo.txt"/> ...

WAP for Android/iPhone/WebOS/Etc...

New to WAP, are there any good resources out there for WAP on Smart phones IE: Android/iPhone/WebOS/Etc... Looking to do some dev work but don't know where to get started ...

iTextSharp - How to input image (PNG) from project resource?

I have iTextSharp creating a pdf for me in VB.net. Everything was working famously, except now I want to embed an image. I tried this: Dim test = My.Resources.MyImage Dim logo = Image.GetInstance(test) This an error though: 'GetInstance' cannot be called with these arguments It appears as though it expects a path, and is getting...

How can I use a resource within a custom Xml resource file?

I have an XML resource file: <resources> <section> <category value="1" resourceId="@xml/categoryData1" /> <category value="2" resourceId="@xml/categoryData2" /> <category value="3" resourceId="@xml/categoryData3" /> </section> </resources> Using XmlPullParser, on the START_TAG, I can use: int value = p...

Opening a resource outside an activity in Android

I am trying to open a Resource by passing the result of context.getResources().getString(R.drawable.myimage) to another class that is not an activity. context.getResources().getString(R.drawable.myimage) returns res/drawable-mdpi/myimage.png However, when I try and open this file, it throws a FileNotFoundException. What is the proper ...

How can I change resource files for a c# winform app, without changing the culture?

We have a winform app that has been in development for some time. It has serveral images and control colours that create a branded experience. We have a second customer who would like the same product, but with different branding. So we have lines of code in the control designer.cs files like: this.BackgroundImage = global::MyNameS...

How to resolve CVT1100 in Visual Studio 2010 Ultimate?

Hi, I'm working on a medium-sized project which uses qmake to generate Visual Studio 2005 project files. I'm trying to get it built under Visual Studio 2010 Ultimate. Since qmake doesn't support this IDE yet i had the provided conversion assistant convert my solution. When trying to build I get the following error in one of the subproj...

File or database localization

In ASP.NET which is better performance wise; Localization using the file based resx / resource system Localization by retrieving translations from a database Thanks ...

How do SystemColors work?

If I write test = Application.Current.FindResource(SystemColors.ActiveBorderBrushKey); test will have a value even though Application.Current.Resources is empty. How does it work? ...

Get WPF resource from code?

What is the simplest way to get a WPF resource from code? I need to disable a text box in a WPF form if a checkbox in the same window is checked. I have wired the checkbox to an event handler in code-behind. The event handler disables the checkbox and changes its background to a light gray, to indicate that the control is disabled: pri...