Constants.vbDefaultButton2 필드

정의

메시지 상자가 나타날 때 왼쪽의 두 번째 단추가 기본 단추로 선택되었음을 나타냅니다.

public: Microsoft::VisualBasic::MsgBoxStyle vbDefaultButton2 = 256;
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton2 = 256;
val mutable vbDefaultButton2 : Microsoft.VisualBasic.MsgBoxStyle
Public Const vbDefaultButton2 As MsgBoxStyle  = 256

필드 값

Value = 256

예제

' Set the Retry button as the default button.
MsgBox("Error occurred", vbDefaultButton2 Or vbAbortRetryIgnore)

설명

MsgBox 함수를 호출할 때, 실제 값 대신 코드에서 MsgBoxStyle 열거형을 사용할 수 있습니다. 인수는 Buttons 열거형 멤버를 MsgBoxStyle 사용합니다.

적용 대상

추가 정보