Click here to Skip to main content
11,802,636 members (69,120 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: WinXP C# Windows
How to change font of a form title and toolstrip button text in Lao or other Asian language at runtime in winforms using c#.
I have a Lao Resource file where I defined values for label and other strings in Lao language.

frm_licence(A window form)
font(a string variable in Lao resource file where i set it to SaysthaOT font.

Sample code.

this.Text = Lao.frm_licence.ToString();
this.Font = new Font(Lao.font.ToString(), this.Font.Size);

It is nicely applied on label control and other menustrip values but it is not working for form title and toolstrip button text.

it is working for label control.

Label1.Text = Lao.Label1.ToString();
Label1.Font = new Font(Lao.font.ToString(), Label1.Font.Size);

but not working for a form's title and toolstrip buttons text property

Posted 28-Feb-12 23:24pm
Edited 29-Feb-12 20:02pm
Shahin Khorshidnia at 29-Feb-12 5:31am
What do you mean by "not working for form name text and ..." ?
Does it have a text direction problem? Or unreadable text like "??????????"? Or etc ?
devbtl at 29-Feb-12 5:57am
when i am converting the winform name it is not converting the font of text.
It is displaying the text same in resource file in windows 7 but in xp it is displaying in unread characters.
OriginalGriff at 1-Mar-12 2:03am
Don't bump your question - it is rude.
devbtl at 1-Mar-12 2:42am
the reason behind the bump is that I want all visitors read this question otherwise I have to post it again. :)
OriginalGriff at 1-Mar-12 3:28am
Consider: if it didn't get answered last time, it probably is because no one here knows. Posting exactly the same question again is also considered rude.
devbtl at 1-Mar-12 3:33am
Thanks for info.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 KrunalRohit 366
1 OriginalGriff 365
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CPallini 230
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,695
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 1 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100