Click here to Skip to main content
15,906,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: DateTime Format Pin
PIEBALDconsult28-Dec-07 13:38
mvePIEBALDconsult28-Dec-07 13:38 
GeneralRe: DateTime Format Pin
eggie528-Dec-07 13:44
eggie528-Dec-07 13:44 
Questionhow to get motherboard and hard-disk serial number ? Pin
E_Gold27-Dec-07 11:03
E_Gold27-Dec-07 11:03 
AnswerRe: how to get motherboard and hard-disk serial number ? Pin
Kristian Sixhøj27-Dec-07 11:14
Kristian Sixhøj27-Dec-07 11:14 
AnswerRe: how to get motherboard and hard-disk serial number ? Pin
Paul Conrad27-Dec-07 15:01
professionalPaul Conrad27-Dec-07 15:01 
AnswerRe: how to get motherboard and hard-disk serial number ? Pin
Abhijit Jana27-Dec-07 21:42
professionalAbhijit Jana27-Dec-07 21:42 
QuestionHow to change the input language programmatically ? Pin
Aldorado27-Dec-07 10:41
Aldorado27-Dec-07 10:41 
AnswerRe: How to change the input language programmatically ? Pin
Aldorado27-Dec-07 11:22
Aldorado27-Dec-07 11:22 
Thanks to everybody I've found the solution Smile | :)

using System.Globalization;

2)i decalre two CultureInfo one for the Deafult Language and the other to the second language (Arabic in my case)

CultureInfo arabic = new CultureInfo("ar-QA", false);
CultureInfo english = new CultureInfo("en-US", false);

2) in the focus enter event of the desired textbox i added the following code


private void txtName_Enter(object sender, EventArgs e)
{
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(arabic);
}

so the language change to Arabic .

3) in the focus leave event of the same textbox i added

private void txtName_Leave(object sender, EventArgs e)
{
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(english);
}

so the language returned to the default input language.

Thanks and i hope the explanation is enough.


Asaad Al Chalabi
abushalabi@hotmail.com
GeneralRe: How to change the input language programmatically ? Pin
Paul Conrad27-Dec-07 15:01
professionalPaul Conrad27-Dec-07 15:01 
GeneralRe: How to change the input language programmatically ? Pin
t.alkahtiri21-Mar-10 22:38
t.alkahtiri21-Mar-10 22:38 
GeneralRe: How to change the input language programmatically ? Pin
Avner L28-Jul-13 5:57
Avner L28-Jul-13 5:57 
GeneralDelete childnodes and not rootnode using the checkbox in the Treeview property Pin
T4AMD27-Dec-07 9:11
T4AMD27-Dec-07 9:11 
GeneralRe: Delete childnodes and not rootnode using the checkbox in the Treeview property Pin
Paul Conrad27-Dec-07 15:02
professionalPaul Conrad27-Dec-07 15:02 
GeneralPrint on MobileProSpectrum Printer using WindowsCE5.0 device in .NET2005 Pin
michaelqog27-Dec-07 9:10
michaelqog27-Dec-07 9:10 
QuestionParsing one PDF out to several PDFs Pin
franzcatch27-Dec-07 7:50
franzcatch27-Dec-07 7:50 
GeneralRe: Parsing one PDF out to several PDFs Pin
Jimmanuel27-Dec-07 8:28
Jimmanuel27-Dec-07 8:28 
QuestionByte to Hex string Pin
piyush123027-Dec-07 4:27
piyush123027-Dec-07 4:27 
GeneralRe: Byte to Hex string Pin
Luc Pattyn27-Dec-07 4:55
sitebuilderLuc Pattyn27-Dec-07 4:55 
GeneralRe: Byte to Hex string Pin
Guffa27-Dec-07 9:32
Guffa27-Dec-07 9:32 
GeneralRe: Byte to Hex string Pin
piyush123027-Dec-07 17:26
piyush123027-Dec-07 17:26 
Questionto create strong name in VS 2005 in command prompt Pin
Dhilipkumar27-Dec-07 4:05
Dhilipkumar27-Dec-07 4:05 
GeneralRe: to create strong name in VS 2005 in command prompt Pin
TJoe27-Dec-07 5:20
TJoe27-Dec-07 5:20 
GeneralUpdating mdb file from another mdb file Pin
kallileo27-Dec-07 3:20
kallileo27-Dec-07 3:20 
GeneralRe: Updating mdb file from another mdb file Pin
Not Active27-Dec-07 3:53
mentorNot Active27-Dec-07 3:53 
GeneralRe: Updating mdb file from another mdb file Pin
kallileo27-Dec-07 4:03
kallileo27-Dec-07 4:03 

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.