Multiple MessageBox Options
Asked Answered
D

2

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?

Durative answered 23/4, 2011 at 23:47 Comment(1)
Did you try MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading for last parameter?Goodly
C
14

OR them together: MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign

Chauchaucer answered 23/4, 2011 at 23:50 Comment(0)
A
7

Use the OR operator:

MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign
Another answered 23/4, 2011 at 23:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.