473,378 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Trying to override the culture of the system print dialog

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 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.
Jul 21 '05 #1
1 2295
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.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
1
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...
0
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,...
0
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...
9
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
5
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...
0
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. ...
5
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...
2
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"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.