I'm writing a C# win forms application and the customers wish to be
able to define at run/install time which language that application
runs in.
I've manage to set the applications culture, setting the
Thread.CurrentT hread.CurrentUI Culture and
Thread.CurrentT hread.CurrentCu lture to a new CultureInfo class.
This works fine for the application resources, windows, string tables,
etc, however the system dialogs, print, print preview, color palette,
etc, still appear in the system language.
I have tried everything I could think of and was wondering if it was
actually possible. It's great to set the application language, but if
the open file dialog is in a different language it will make most of
the rest of the work useless....
Thanks in advance....
-Jim. 1 2329
Hi James,
Thanks for your post!
In your post, you said your application will run in a language which
customers can define at run/install time. I think that in most cases the
customers will select locale languages of their own which should be the
same as their machines' operation system locale setting. So probably the
system dialogs' culture setting won't be a problem for your application's
customer.
The system dialogs, print, print preview, color palette dialogs are
provided by the Windows system, their culture configurations is the same as
the Windows system's which these dialogs belonged to. Since they are
created by the operation system instead of by your application, it is
inconvenient to set their Culture. If you really want to change the culture
of the system dialogs, my idea is that you create some "Clone" system
dialogs (which look like the original system dialog, but allows you to
change their culture), and lets the customers perform settings in those
system dialogs, then apply these setting's changes to the system through
your program codes. However it seems there's more complicated work ahead.
--
Parker Zhang
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kenneth P |
last post by:
Hi,
I have a very good book on asp.net Sams ASP.NET Tips, Tutorials and Code
ISBN 0-672-32143-2 and is trying to teach myself from examples from this book
Chapter 16.
Anyway I come quite close when trying to run one example but then I get this
message I don't understand:
"This .resources file shouldn't be used with this reader. Your resource
|
by: JimHurst |
last post by:
I'm writing a C# win forms application and the customers wish to be
able to define at run/install time which language that application
runs in.
I've manage to set the applications culture, setting the
Thread.CurrentThread.CurrentUICulture and
Thread.CurrentThread.CurrentCulture to a new CultureInfo class.
This works fine for the application resources, windows, string tables,
etc, however the system dialogs, print, print preview, color...
|
by: Bill Baker |
last post by:
I have a class that requires the Machine Name as a parameter in the
construtor. It is a Windows Form app. When I run the executable, I get the
"Send Error Report..." dialog. When I debug in VS.NET, I get these details:
System.Security.SecurityException was unhandled
Message="Request for the permission of type
'System.Security.Permissions.EnvironmentPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'...
|
by: Rob Dob |
last post by:
Hi,
I have a VS2003 C# asp.net project that has been converted into a VS2005
project. Everything seemed to work well until I make a modification to
anything within the Component Designer window, i.e. I add a SQLCommand. At
that point VS2005 changes my C# file to now load all Selectcommantext data
from the resource file instead of the .aspx.cs file. then when I try and
once again run my application I get the following error: looking...
|
by: Edge |
last post by:
hi,
I am saving the user selected culture in a session variable so I can apply
it back to all pages when refreshed and then load the proper .resx values.
For that I am using global.asax
| |
by: Marcel Hug |
last post by:
Hi NG !
I'm new in C# and I'm reading a book about the fundamentals and concepts.
In the chapter Methods it's written to use virtual, if i would like to
override the method in a subclass. This I've to do by using override.
It's also written, that's possible to "hide" the base class method by
using the new key word.
Because I've already written some C# code and I didn't know anything
|
by: Lambuz |
last post by:
Hi all,
I've got this problem.
I've to implemente a solution like the example in
http://support.microsoft.com/default.aspx?scid=kb;EN-US;313891, but I
can't configure correctly the example.
Every time I click on the textBox a System.Security.SecurityException
is raised.
|
by: Mike Krell |
last post by:
I'm running into problems trying to override __str__ on the path class
from Jason Orendorff's path module
(http://www.jorendorff.com/articles/python/path/src/path.py).
My first attempt to do this was as follows:
'''
class NormPath(path):
def __str__(self):
return 'overridden __str__: ' + path.__str__(self.normpath())
|
by: Rahul |
last post by:
I am trying the following thing in AJAX
<atlas:ScriptManager ID="scriptmanager1" runat="Server"
EnablePartialRendering="true" />
<asp:DropDownList ID="cmbBranchname" cssclass="Combostyle" runat="server"
/>
<br/>
<atlas:UpdatePanel ID="panel1" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |