Click here to Skip to main content
15,890,043 members
Home / Discussions / C#
   

C#

 
AnswerRe: Difference between Array and Loop. Pin
LLLLGGGG24-Jan-15 2:12
LLLLGGGG24-Jan-15 2:12 
AnswerRe: Difference between Array and Loop. Pin
Santosh K. Tripathi26-Jan-15 22:38
professionalSantosh K. Tripathi26-Jan-15 22:38 
QuestionFill dataGrid from MySQL database in C# WPF Pin
cicill23-Jan-15 17:49
cicill23-Jan-15 17:49 
SuggestionRe: Fill dataGrid from MySQL database in C# WPF Pin
Richard MacCutchan23-Jan-15 22:37
mveRichard MacCutchan23-Jan-15 22:37 
AnswerRe: Fill dataGrid from MySQL database in C# WPF Pin
Mycroft Holmes23-Jan-15 23:16
professionalMycroft Holmes23-Jan-15 23:16 
Questionfee system with keep the record of whole year Pin
Haidar ali23-Jan-15 16:56
Haidar ali23-Jan-15 16:56 
AnswerRe: fee system with keep the record of whole year Pin
Dave Kreskowiak23-Jan-15 17:05
mveDave Kreskowiak23-Jan-15 17:05 
QuestionMulti Lingual C# application - Issue on getting Chinese Language selection option on typing English key combination Pin
Johnson Antony23-Jan-15 15:57
Johnson Antony23-Jan-15 15:57 
Hi
I am developing a c# Winforms application using VS 2008 and DevExpress.

In one form, I need the some data to be added both in English and Chinese Language. So I placed separate textboxes for both Chinese and English and two buttons on form. one Button click shows Chinese language section and changes Inputlanguage . Second button hides Chinese language section, Changes InputLanguage .

When I run the application, First time when I change to Chinese Language, I am getting Chinese language selection option on typing English letter combination. But after returning to English, if I again go to Chinese data entry, I am not getting Chinese Language support on typing English.

But I am seeing the Language change on Taskbar.

Language Change Code
1st method
C#
foreach (InputLanguage lang in InputLanguage.InstalledInputLanguages)
{
    CName = lang.Culture.EnglishName.ToString();

    if (CName.StartsWith("Chinese")) //"English"
    {
        InputLanguage.CurrentInputLanguage = lang;

        break;
    }
}


2nd Method
C#
Thread.CurrentThread.CurrentCulture = new CultureInfo("zh-CN");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CN");


I tried this with normal windows forms project and controls( Not Devexpress form) still the issue not solved. If we change input language manually at Taskbar, I am getting Language selection option. The Issue is only with language change from code.

Please give me a immediate advice

Thanks

Johnson
QuestionDifference between Array and Loop. Pin
Member 1116162523-Jan-15 3:08
Member 1116162523-Jan-15 3:08 
AnswerRe: Difference between Array and Loop. Pin
Wendelius23-Jan-15 3:17
mentorWendelius23-Jan-15 3:17 
AnswerRe: Difference between Array and Loop. Pin
PIEBALDconsult23-Jan-15 3:24
mvePIEBALDconsult23-Jan-15 3:24 
GeneralRe: Difference between Array and Loop. Pin
nagendrathecoder23-Jan-15 4:05
nagendrathecoder23-Jan-15 4:05 
AnswerRe: Difference between Array and Loop. Pin
LLLLGGGG23-Jan-15 10:52
LLLLGGGG23-Jan-15 10:52 
QuestionWhy does the callback method of an EventHandler<T> need to be static? Pin
TMattC22-Jan-15 22:38
TMattC22-Jan-15 22:38 
QuestionRe: Why does the callback method of an EventHandler<T> need to be static? Pin
Richard Deeming22-Jan-15 23:34
mveRichard Deeming22-Jan-15 23:34 
AnswerRe: Why does the callback method of an EventHandler<T> need to be static? Pin
TMattC22-Jan-15 23:56
TMattC22-Jan-15 23:56 
GeneralRe: Why does the callback method of an EventHandler<T> need to be static? Pin
Eddy Vluggen23-Jan-15 0:35
professionalEddy Vluggen23-Jan-15 0:35 
QuestionDeleted Files path from HardDisk ( FAT / NTFS ) in C# Pin
Member 1139660822-Jan-15 22:35
Member 1139660822-Jan-15 22:35 
AnswerRe: Deleted Files path from HardDisk ( FAT / NTFS ) in C# Pin
OriginalGriff23-Jan-15 0:26
mveOriginalGriff23-Jan-15 0:26 
GeneralRe: Deleted Files path from HardDisk ( FAT / NTFS ) in C# Pin
deepankarbhatnagar23-Jan-15 1:17
professionaldeepankarbhatnagar23-Jan-15 1:17 
GeneralRe: Deleted Files path from HardDisk ( FAT / NTFS ) in C# Pin
Pete O'Hanlon23-Jan-15 2:59
mvePete O'Hanlon23-Jan-15 2:59 
QuestionEncrypting String Pin
EricSouthman22-Jan-15 21:59
EricSouthman22-Jan-15 21:59 
AnswerRe: Encrypting String Pin
V.22-Jan-15 22:39
professionalV.22-Jan-15 22:39 
AnswerRe: Encrypting String Pin
Eddy Vluggen23-Jan-15 0:33
professionalEddy Vluggen23-Jan-15 0:33 
AnswerRe: Encrypting String Pin
GuyThiebaut23-Jan-15 0:43
professionalGuyThiebaut23-Jan-15 0:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.