I'm building C# WinForms using the MVP pattern in VS 2008. I will migrate these to WPF in the future. These forms will need to support multiple languages for the input labels and menus. I want to store the label text in a SQL Server database and pull up the proper label based on language.
Which of thse options (or another option perh...
I have included an executable in my project ( i.e. when you unfold the project in the Solution Explorer in VS2008, you see it along with all the other classes). This executable will need to be launched by my program. How can I retrieve its path programmatically?
...
I have a board with cards in which I have to find matches. I have two variables buttonA and buttonB to keep track of the squares clicked.
When they are equal I can remove them from the board by simply adding this code:
cards[buttonA].setVisible(false);
cards[buttonB].setVisible(false);
How can I place the same image on all the button...
It seems that using a DynamicResource to refer to an application level resource can cause memory leaks to occur.
Please see this WPF forum post for more info, how to reproduce it, and some workarounds.
My question is: has anyone else run into it? If so, how have you worked around it?
By the way, there seem to be many situations where ...
Hi guys,
How can I set the resource string in javascript?
I have a resource file called, for example,
myResourceFile.resx
in my code and using the literal control I can use:
lblName.Text = Resources.myResourceFile.ajaxRetrievingInformation;
<asp:Literal id="lit" runat="server"
Text="<%$ Resources:myResourceFile, ajax...
Is there a way to redefine/alias an existing SolidColorBrush (or any other resource, actually)?
Case in point: I have a brush in an external ResourceDictionary that I want to reference by my own key instead of the original key. I don't want to be dependent on the external reference, since the actual brush is prone to change in the futur...
// Toolbar.rc
#include "resource.h"
IDI_MAINICON2 ICON "MainIcon.ico"
// resource.h
#define IDI_MAINICON2 201
// main.cpp
icon_button = CreateWindow(TEXT("button"), TEXT("Button"),
WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON |
BS_ICON | BS_TEXT,
80, 80, 55, 40,
...
Hi,
depending on a compile switch (values are COMPILE_A or COMPILE_B), which is set in the form of an envorinment variable, I want to compile my application with different settings, like application name and splash screen.
I got this far:
In "Project / Settings / C/C++ / Preprocessor Definitions" I added $(COMPILESWITCH) (results in...
Hi everybody,
I've made a lot of solutions (wsp) for SharePoint 2007 and I have almost automated all installation steps needed, but there is one thing I cannot automate.
How can I make a solution that places resources (resx) files in the App_GlobalResources folder of the virtual application?
Thanks in advance.
...
I have a project which requires an image in the window. This is a static image and i added through 'Add>Existing Item'. It exists in the root of the project.
I reference the image in a test page like so -
<Page x:Class="Critter.Pages.Test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.micro...
I want to use the Aero textbox styling, but still override some properties. I try to accomplish this by:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=...
Hi everyone,
I am creating a windows service in Java that writes data to an object.
This object has to be accessible by another Java program.
What is the best approach to take?
Thank you.
Jack
...
Hi,
Does anyone know a community where one might find answers relating to printer driver programming?
I know it's a bit general, but I'm stuck with a particular SDK and the manual is just really bad.
For reference, I'm working with an Epson SDK, and I can't seem to find the a "developer's forum" on their website anywhere.
Please don'...
I have a web application that currently has about 500,000 users, averaging about 500 page views per hour, and we are expecting to have to scale up to 20,000,000 users within the next year.
Our current system cannot handle that scale, and so we need to move to one that can.
I was thinking a services-based architecture would be more ro...
Hello,
I currently have a few server reports that return usage statistics whenever run. The data is collected from several different sources (mostly log files), so they're not in a database to begin with.
The returned data are simple lists, for example, detailing how much disk space a user is using (user => space) average percent memor...
We have several large products we'd like to integrate with a consistent localization strategy.
We're already doing the right things from a code point of view - ie. strings in resource files.
I'm looking for something that will organize localized strings in a database, and generate the appropriate resource files (ie. .RESX files for .NE...
svn doesnt commit a library like MySql connector, so when i commit my project it is not uploaded to the server, how can i do this, i how to sync another resources like pictures
...
Is there a command line tool that can add an icon to an existing executable file? It should be able to set the icon as the file's "main" icon that is shown in Explorer.
I don't have Visual Studio and cannot recompile the exe with custom resources containing the icon.
UPDATE: The best tool I have found since posting this question is by ...
Exception:
Cannot convert the value in attribute 'Text' to object of type
'System.String'. Unable to cast object
of type 'MyApp.Foo' to type
'System.String'.
XAML:
<Window.Resources>
<my:Foo x:Key="foo"></my:Foo>
</Window.Resources>
<TextBox Text="{DynamicResource foo}"></TextBox>
C#
[TypeConverter(typeof(FooConverter)...
Is there a way in Java to construct a File instance on a resource retrieved from a jar through the classloader?
My application uses some files from the jar (default) or from a filesystem directory specified at runtime (user input). I'm looking for a consistent way of
a) loading these files as a stream
b) listing the files in the user-de...