Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 31st, 2008, 11:50 PM
Authorized User
 
Join Date: Mar 2008
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to vgsgowrisankar
Default MessageBox Font change

hai, i would like to change my messagebox font from english to tamil . but i don't know how to change it. is there any idea ?
 
Old April 1st, 2008, 12:33 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi vgsgowrisankar,

You need to change the UI culture for your application to whatever you need (in this case, Tamil).

This can be done by setting the Thread.CurrentThread.CurrentUICulture property to a CultureInfo based on the desired culture code. Tamil is "ta-IN".

You will also need to ensure the current font is capable of displaying the character set.

Have a look and play with some code based on this info, if you get stuck please give me a shout.

Also - its considered "best practice" to actually allow the user to change the culture if you are building a culture-aware application. Just because their workstation may be configured for one culture, they may want to work in another!

Good luck :)

Rob
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://www.robzyc.spaces.live.com
<center>"Nothing can stop the man with the right mental attitude from achieving his goal;
nothing on earth can help the man with the wrong mental attitude".

Thomas Jefferson</center>
 
Old April 8th, 2008, 12:53 AM
Authorized User
 
Join Date: Mar 2008
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to vgsgowrisankar
Default

hi, thank you for ur response. but my problem is, i am designing the software in english language with C#.net . but message box only i want to change the other language.
 
Old April 8th, 2008, 03:30 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Doing a search on google I found this: http://www.codeproject.com/KB/cs/multilingual.aspx

Did you do a search on google? Did you try out the example above to see if it worked?

/- Sam Judson : Wrox Technical Editor -/
 
Old April 8th, 2008, 04:00 AM
Authorized User
 
Join Date: Mar 2008
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to vgsgowrisankar
Default

Thank you for ur link sir. my issue is . my software should be support two languages at same time.
 
Old April 8th, 2008, 04:10 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Seeing as we have already told you you can set the UI Culture in code, and pointed to a web site showing you how to include foreign characters in a messagebox, what is left to explain? If you can set the UI Culture in code then you can also set it back again when you have finished, Lo and behold, multiple languages!

Have you tried the example in the linked web site?

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change font using winspool FileFound Visual Studio 2005 0 July 9th, 2007 04:57 AM
change MessageBox angelboy C# 2005 0 January 17th, 2007 02:58 PM
Thai Font Change in ??????? Montri SQL Server ASP 1 June 12th, 2006 10:35 PM
MessageBox change visibility of global variables?? vincas Visual C++ 0 January 27th, 2005 05:04 AM
change font is template column Raif General .NET 0 July 28th, 2004 02:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.