QuestionMsg(String, MsgBoxStyle, String, MsgBoxStyle) Method

ask User (default OKCancel) and log as warning if Critical Or Exclamation (logged errors would pop up the trace information window)
Namespace: DBaddinAssembly: DBaddin in (DBaddin.dll)

Syntax

public static MsgBoxResult QuestionMsg(
	string theMessage,
	MsgBoxStyle questionType,
	string questionTitle,
	MsgBoxStyle msgboxIcon
	)

Parameters

theMessage
Type: String
the question to be shown/logged
questionType
Type: MsgBoxStyle
optionally pass question box type, default MsgBoxStyle.OKCancel
questionTitle
Type: String
optionally pass a title for the msgbox instead of default DBAddin Question
msgboxIcon
Type: MsgBoxStyle
optionally pass a different Msgbox icon (style) instead of default MsgBoxStyle.Question

Returns

MsgBoxResult
choice as MsgBoxResult (Yes, No, OK, Cancel...)