How can I change *.EXEs icons from c# code (not my main app icon but from that app i want to change the icon of another exe).
I eventually would have to change the icons for A LOT of files so I am looking for a fast and good performance way to do it.
I have been googling for 30min but all I found is how to set the icon for the app in V...
I would like to do something that is seemingly quite simple, but I cannot figure out how to do it. I have a ColorAnimation that is triggered when the MouseEnter event occurs. It simply changes the background color of a Border from one color to another color.
Unfortunately, I can't figure out how to put anything but hardcoded colors in...
I am trying to replace (or add in the case it doesn't exists) icons from .exe files using c#.
So far I got this:
string filename = "c:\\test.exe";
IntPtr hResource = BeginUpdateResource(filename, true);
if (hResource.ToInt32() == 0)
throw new Exception("File Not Found");
byte[] ico = System...
Hello,
I'm wondering about the clever way to do this...
I have methods that return a value when passed an an object as parameter, such as:
<%= average_rainfall(@location) %>
I'd like to use the exact same methods as a nested resource to call via jQuery/Ajax, like so:
.load('/location/8/average_rainfall')
I understand how to define t...
Is there a way in eclipse to search the classpath for arbitrary resource file names (or patterns)?
I know I can use either
Navigate > Open Type
(which will scan the classpath for classes) or
Navigate > Open Resource,
which will search for any resource type, but only in my project folders. Is there any way to achieve a combination o...
Hi all,
Let's say we have such site structure:
App_LocalResources
|- A.aspx.resx
|- B.aspx.resx
A.aspx
B.aspx
Now I use HttpContext.GetLocalResourceObject("~/A.aspx", "Key1") in A.aspx.cs, and it works fine.
But if I use HttpContext.GetLocalResourceObject("~/A.aspx", "Key1") in B.aspx.cs, it throws an exception:
The resou...
Hello!
This isn't a duplicate of http://stackoverflow.com/questions/531502/vc-resources-in-a-static-library because it didn't help :)
I have a static library with TWO .rc files in it's project. When I build my project using the Debug configuration, I retrieve the following error (MSVS2008):
fatal error LNK1241: resource file res_yyy.r...
I am having a bit of a hard time providing localized strings for the UI in a small Silverlight 4 application. Basically I've put a folder "Resources" and placed two resource files in it :
Statuses.resx
Statuses.ro.resx
I do have an enum Statuses :
public enum Statuses
{
None,
Working
}
and a convertor :
public class Statu...
Hello!
I have some code which shows a simple dialog box and handles user action (written using plain WinAPI).
// Display dialog and handle user action
LRESULT choice = DialogBoxParam(NULL, MAKEINTRESOURCE(AP_IDD_DIALOG), NULL, (DLGPROC)DialogCallback, NULL);
Is there any way to hardcode the resource file dialog.rc, which is used to ...
We have a website on IIS7 using ASP.NET Routing that seems as though it might be running out of resources.
It just hangs after a few days, there is no error message or apparent crash.
We are making sure every .Open command is matched by a .Close command on the database connection.
We are doing the same with file Open/Close but there are...
I want to add resources to my netbeans project but I don't know where to add or how to get the added resource via ResourceManager so that I can localize the text.
I could not find any dummy guide to add the resource files and read the localized strings using resource manager.
What is the format of the resource file? It is .properties o...
Is there a way to monitor when an application that is using the dll closes? The DLL and the application are both C#, neither are Windows Forms.
I can check when the main application is closing, but I would like for the DLL to see "hey the program is closing and releasing me, I should do this real quick before I die".
Any way to do it? ...
One of my customers is trying to create an interactive "matrix" of interdependencies for the various applications used in their company (it's a travel&leisure company with around 2500 employees).
The idea (still at the prototype stage) is to create a sort of Map, based on Visio or similar tool, which traces the communication and interde...
I'm working on a application (.NET, but not relevant) where there is large potential for resource/string duplication - most of these strings are simple like:
Volume: 33
Volume: 33 (dB)
Volume
33 dB
Volume (dB)
Command - Volume: 33 (dB)
where X, Y and unit are the same.
Should I define a new resource for each of the string or is it ...
Hi,
I have a small C++ dll which was written in Visual Studio (of course).
In the solution code, I have a resource file that includes only version information.
The strange dact is, that when I frag the compiled dll to Visual Studio, it opens a resource viewer with bitmaps, dialogs and a string table - where do all of them come from??
...
Hi everyone,
I want to acces to the strings of the ApplicationStrings file through the ResourceWrapper like this :
String loginlabel = ( (ResourceWrapper) App.Current.Resources["ResourceWrapper"] ).ApplicationStrings.LoginLabel;
in order to get the good string according to the current culture (language) but it doesn't work at all.
A...
I see these CodeResources folders in some of the system Mac apps and some third party apps. What are they?
...
My class library is compiled against .NET 2.0 and works just fine whenever I try to load it as a plugin under the 2.0 runtime. If however the master application is running the .NET 4.0 runtime, I get an exception as soon as the resources need to be accessed:
Exception occurred during processing of command: Grasshopper
Plug-in = Grasshop...
Is there a way to get a resource in a spring web application using a simple Resource? I am trying not to pass any context, and need to obtain a file from the WEB-INF/freemarker/email/ directory.
...
I want to add a text file as resource in VC++ 2005. I am not able to find text as option in resource template.
Also once added how can I refer to that file while programming?
...