Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Windows WinForm XP
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 29-Feb-12 0:24am
Edited 29-Feb-12 21: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)

Advertise | Privacy | Mobile
Web01 | 2.8.150327.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