Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

C#
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.

C#
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

Thanks
Posted
Updated 29-Feb-12 20:02pm
v5
Comments
Shahin Khorshidnia 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 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 1-Mar-12 2:03am    
Don't bump your question - it is rude.
devbtl 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 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.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900