开发者

How can I Write 218-one-two in Textbox?

How can I Show "218-one-two" in Textbox that has Property RightToLeft=Yes , I Retrieve "218-one-two" from database and i show it in text box has RightToLeft=Yes, When I try to show this value , it had shown like this: "one-two-213" i used also string.format("{0:n}-{1}-{2}",number,string,string) i didn't work. How can I Show or format my value in this format "number-string-string" in RightToLeft textbox???

I am not supposing to use RightToLeft for languages only I use by default arabic language in my application, but some time i receive english values in this textbox and i n开发者_运维知识库eed to show it on like that format.

Please Help me..


Why do you feel that you need the RightToLeft property on? A few simple tests indicate that you're not likely to be able to override this behavior; presumably it's there for a reason.

If you're just trying to right-align the text, the TextBox already provides a property for that. Set your control's TextAlign property to "Right".

You're only supposed to use RightToLeft for languages that display text in a right-to-left format. Judging from your question, that's clearly not the case.


You are presumably talking about an app that runs in a RTL culture. But you want to inject some text from a LTF culture. There are Unicode characters that indicate that certain parts of a block of text are LTR or RTL. Can you do it that way?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜