[This is preliminary documentation and is subject to change.]
Displays a formatted message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static MsgBoxResult MsgBoxF( string prompt, MsgBoxStyle buttons, string title, params Object[] args ) |
| Visual Basic |
|---|
Public Shared Function MsgBoxF ( _ prompt As String, _ buttons As MsgBoxStyle, _ title As String, _ ParamArray args As Object() _ ) As MsgBoxResult |
| Visual C++ |
|---|
public: static MsgBoxResult MsgBoxF( String^ prompt, MsgBoxStyle buttons, String^ title, ... array<Object^>^ args ) |
| F# |
|---|
static member MsgBoxF : prompt:string * buttons:MsgBoxStyle * title:string * args:Object[] -> MsgBoxResult |
| JScript |
|---|
public static function MsgBoxF( prompt : String, buttons : MsgBoxStyle, title : String, ... args : Object[] ) : MsgBoxResult |
Parameters
- prompt
- Type: System..::..String
[Missing <param name="prompt"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.MsgBoxF(System.String,Microsoft.VisualBasic.MsgBoxStyle,System.String,System.Object[])"]
- buttons
- Type: Microsoft.VisualBasic..::..MsgBoxStyle
[Missing <param name="buttons"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.MsgBoxF(System.String,Microsoft.VisualBasic.MsgBoxStyle,System.String,System.Object[])"]
- title
- Type: System..::..String
[Missing <param name="title"/> documentation for "M:Tools.WindowsT.IndependentT.MessageBox.MsgBoxF(System.String,Microsoft.VisualBasic.MsgBoxStyle,System.String,System.Object[])"]
- args
- Type: array<System..::..Object>[]()[][]
Formatting arguments passed to String along with prompt to form message
Return Value
The result of message box indicatin pressed button.
Remarks
This function mimisc and extends behaviour of the MsgBox(Object, MsgBoxStyle, Object) function
Exceptions
| Exception | Condition |
|---|---|
| System.Reflection..::..TargetInvocationException | There was an error working working with customized static properties such as DefaultImplementation or message box implementation failed. |
See Also
Version History
1.5.3
- (Beta) This function is new in version 1.5.3