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: Stringthe question to be shown/logged
- questionType
- Type: MsgBoxStyleoptionally pass question box type, default MsgBoxStyle.OKCancel
- questionTitle
- Type: Stringoptionally pass a title for the msgbox instead of default DBAddin Question
- msgboxIcon
- Type: MsgBoxStyleoptionally pass a different Msgbox icon (style) instead of default MsgBoxStyle.Question
Returns
MsgBoxResult
choice as MsgBoxResult (Yes, No, OK, Cancel...)