Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 998
Or Betzalel Avatar asked Apr 23 '11 23:04

Or Betzalel


People also ask

What is the 2nd parameter in MessageBox show ()?

The first parameter msg is the string displayed in the dialog box as the message. The second and third parameters are optional and respectively designate the type of buttons and the title displayed in the dialog box. MsgBox Function returns a value indicating which button the user has chosen.

How do you go to the next line in a MessageBox in VBA?

If you want to force a new line in a message box, you can include one of the following: The Visual Basic for Applications constant for a carriage return and line feed, vbCrLf. The character codes for a carriage return and line feed, Chr(13) & Chr(10).


1 Answers

OR them together: MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign

like image 77
Christo Avatar answered Sep 29 '22 00:09

Christo