Or Betzalel
Or Betzalel

Reputation: 2597

Multiple MessageBox Options

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?

Upvotes: 5

Views: 7205

Answers (2)

Christo
Christo

Reputation: 9075

OR them together: MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign

Upvotes: 14

Jim Mischel
Jim Mischel

Reputation: 133975

Use the OR operator:

MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign

Upvotes: 7

Related Questions