This is a migrated thread and some comments may be shown as answers.

messagebox text reverse

2 Answers 116 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
Behin
Top achievements
Rank 1
Behin asked on 03 Oct 2012, 11:03 AM
hello
I use messagebox and set the Rtl=Yes,the text message language is in persian or arabic,then
I want to change the font of messagebox  so I use html in message text
(RadMessageBox.Show(this, "<html><font=Tahoma>سلام دوست من</html>", "title",
            MessageBoxButtons.OK, RadMessageIcon.Info, MessageBoxDefaultButton.Button1, RightToLeft.Yes);)
but when the messagebox is showDialog the Text is  displayed in reverse.
for example i write "سلام دوست من" in textmessage but its shown "من دوست سلام" .
please help me to solve this problem.

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 05 Oct 2012, 03:09 PM
Hello Behin,

Thank you for contacting us.

Currently, our HTML-like text rendering engine does not support right-to-left languages. However, if you need to change the font of the entire text, then you can set the Font property of the message box label. The following code snippet demonstrates this:
private void ShowMessageBox()
{
    RadMessageBox.Instance.Controls["radLabel1"].Font = new Font("Tahoma", 12f, FontStyle.Regular);
    RadMessageBox.Show("This is Tahoma", "Message Box");
}

I hope this will help you. Do not hesitate to ask if you have any additional questions.

Greetings,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Behin
Top achievements
Rank 1
answered on 06 Oct 2012, 06:45 AM
Thank you very much,It was the answer.
Tags
MessageBox
Asked by
Behin
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Behin
Top achievements
Rank 1
Share this question
or