5

It's a silly question but I couldn't find an answer to that :

I'm using a messagebox to display text in hebrew and I need both RTLReading and RightAlign.

I'm currently using :

MessageBox.Show(msg, title, MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading);

How can I add MessageBoxOptions.RightAlign?

Or Betzalel
  • 2,427
  • 11
  • 47
  • 70

2 Answers2

14

OR them together: MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign

Christo
  • 8,729
  • 2
  • 22
  • 16
7

Use the OR operator:

MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign
Jim Mischel
  • 131,090
  • 20
  • 188
  • 351