Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: What do programmers think about "Fluent Interface's" ? Pin
venomation7-Mar-11 23:28
venomation7-Mar-11 23:28 
AnswerRe: What do programmers think about "Fluent Interface's" ? Pin
PIEBALDconsult7-Mar-11 16:31
mvePIEBALDconsult7-Mar-11 16:31 
Questionitem not found in the table exception Pin
fzerd6-Mar-11 6:45
fzerd6-Mar-11 6:45 
GeneralRe: item not found in the table exception Pin
Praveen Raghuvanshi6-Mar-11 6:59
professionalPraveen Raghuvanshi6-Mar-11 6:59 
GeneralRe: item not found in the table exception Pin
fzerd6-Mar-11 11:02
fzerd6-Mar-11 11:02 
AnswerRe: item not found in the table exception Pin
RaviRanjanKr9-Mar-11 17:31
professionalRaviRanjanKr9-Mar-11 17:31 
Questionproblem with using local language font in the textbox. Pin
prasadbuddhika6-Mar-11 1:29
prasadbuddhika6-Mar-11 1:29 
AnswerRe: problem with using local language font in the textbox. Pin
N a v a n e e t h6-Mar-11 10:15
N a v a n e e t h6-Mar-11 10:15 
prasadbuddhika wrote:
but when i'm typing in the text box it
shows the english font

That's because the font will be a Unicode font. In that case, you need to emit proper Unicode code points for Sinhala to get the characters displayed correctly. This is why the text set by you at the load is showing correctly but when you type you are entering English characters which is nowhere in the Sinhala code point range.

prasadbuddhika wrote:
time i set true regional setting->language->install files for east asian languages,when i set this off , characters in the textbox shows as black squares

Windows XP requires this to be installed to get the proper rendering. From Windows 7 onwards, this comes by default and you don't have to install separately.

I think you have two choices here.

1 - Use a Sinhala ASCII font which you can supply with your application. In a ASCII font, English characters will be mapped to a Sinhala character. So typing using a English keyboard will show the Sinhala letter. When user wants the text out from the textbox, you need to convert it to Unicode.

2 - Interpret English characters and emit the Sinhala Unicode encoded (UTF8 or UTF16) characters.

prasadbuddhika wrote:
i tried the same app with the same font in win 7 and it works perfect

I can't think of how this will work on Windows 7 with a Unicode font other than using the methods that I explained.

Smile | :)
Best wishes,
Navaneeth

QuestionKeyboard Layout Pin
Xelalem5-Mar-11 23:04
Xelalem5-Mar-11 23:04 
AnswerRe: Keyboard Layout Pin
OriginalGriff5-Mar-11 23:29
mveOriginalGriff5-Mar-11 23:29 
AnswerRe: Keyboard Layout Pin
Richard MacCutchan6-Mar-11 1:24
mveRichard MacCutchan6-Mar-11 1:24 
AnswerRe: Keyboard Layout Pin
RaviRanjanKr9-Mar-11 17:39
professionalRaviRanjanKr9-Mar-11 17:39 
Questiona strange question Pin
_Q12_5-Mar-11 16:05
_Q12_5-Mar-11 16:05 
AnswerRe: a strange question Pin
OriginalGriff5-Mar-11 21:17
mveOriginalGriff5-Mar-11 21:17 
GeneralRe: a strange question Pin
_Q12_6-Mar-11 1:22
_Q12_6-Mar-11 1:22 
GeneralRe: a strange question Pin
OriginalGriff6-Mar-11 1:25
mveOriginalGriff6-Mar-11 1:25 
GeneralRe: a strange question Pin
_Q12_6-Mar-11 1:34
_Q12_6-Mar-11 1:34 
GeneralRe: a strange question Pin
OriginalGriff6-Mar-11 1:36
mveOriginalGriff6-Mar-11 1:36 
GeneralRe: a strange question Pin
_Q12_6-Mar-11 1:45
_Q12_6-Mar-11 1:45 
GeneralRe: a strange question [modified] Pin
_Q12_6-Mar-11 2:04
_Q12_6-Mar-11 2:04 
GeneralRe: a strange question Pin
_Q12_6-Mar-11 2:43
_Q12_6-Mar-11 2:43 
GeneralRe: a strange question Pin
Pete O'Hanlon6-Mar-11 10:59
mvePete O'Hanlon6-Mar-11 10:59 
QuestionCAS - Deny now obsolete and CAS is becoming out of favor, how can I deny "ReflectionPermission" (Need syntax) Pin
devvvy5-Mar-11 14:30
devvvy5-Mar-11 14:30 
Questionteeth detection from image using c# Pin
AhmedMasum5-Mar-11 2:43
AhmedMasum5-Mar-11 2:43 
AnswerRe: teeth detection from image using c# Pin
OriginalGriff5-Mar-11 3:26
mveOriginalGriff5-Mar-11 3:26 

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.