Breyta

Deila með


MsgBoxStyle Enum

Definition

Indicates which buttons to display when calling the MsgBox function.

This enumeration supports a bitwise combination of its member values.

public enum class MsgBoxStyle
[System.Flags]
public enum MsgBoxStyle
[<System.Flags>]
type MsgBoxStyle = 
Public Enum MsgBoxStyle
Inheritance
MsgBoxStyle
Attributes

Fields

Name Value Description
ApplicationModal 0

Application modal message box. This member is equivalent to the Visual Basic constant vbApplicationModal.

DefaultButton1 0

First button is default. This member is equivalent to the Visual Basic constant vbDefaultButton1.

OkOnly 0

OK button only (default). This member is equivalent to the Visual Basic constant vbOKOnly.

OKOnly 0

OK button only (default). This member is equivalent to the Visual Basic constant vbOKOnly.

OkCancel 1

OK and Cancel buttons. This member is equivalent to the Visual Basic constant vbOKCancel.

OKCancel 1

OK and Cancel buttons. This member is equivalent to the Visual Basic constant vbOKCancel.

AbortRetryIgnore 2

Abort, Retry, and Ignore buttons. This member is equivalent to the Visual Basic constant vbAbortRetryIgnore.

YesNoCancel 3

Yes, No, and Cancel buttons. This member is equivalent to the Visual Basic constant vbYesNoCancel.

YesNo 4

Yes and No buttons. This member is equivalent to the Visual Basic constant vbYesNo.

RetryCancel 5

Retry and Cancel buttons. This member is equivalent to the Visual Basic constant vbRetryCancel.

Critical 16

Critical message. This member is equivalent to the Visual Basic constant vbCritical.

Question 32

Warning query. This member is equivalent to the Visual Basic constant vbQuestion.

Exclamation 48

Warning message. This member is equivalent to the Visual Basic constant vbExclamation.

Information 64

Information message. This member is equivalent to the Visual Basic constant vbInformation.

DefaultButton2 256

Second button is default. This member is equivalent to the Visual Basic constant vbDefaultButton2.

DefaultButton3 512

Third button is default. This member is equivalent to the Visual Basic constant vbDefaultButton3.

SystemModal 4096

System modal message box. This member is equivalent to the Visual Basic constant vbSystemModal.

MsgBoxHelp 16384

Help text. This member is equivalent to the Visual Basic constant vbMsgBoxHelp.

MsgBoxSetForeground 65536

Foreground message box window. This member is equivalent to the Visual Basic constant vbMsgBoxSetForeground.

MsgBoxRight 524288

Right-aligned text. This member is equivalent to the Visual Basic constant vbMsgBoxRight.

MsgBoxRtlReading 1048576

Right-to-left reading text (Hebrew and Arabic systems). This member is equivalent to the Visual Basic constant vbMsgBoxRtlReading.

Remarks

When you call the MsgBox function, you can use the MsgBoxStyle enumeration in your code in place of the actual values. The Buttons argument takes the MsgBoxStyle enumeration members.

Applies to

See also