Skip to content

M_DataTools_MessageBoxEx_MessageBoxEx_Show_6

Nathan Moschkin edited this page Aug 22, 2020 · 3 revisions

MessageBoxEx.Show Method (String, String, String, IEnumerable(MessageBoxExButton), MessageBoxExIcons, Object, Boolean)

Creates a message box with custom buttons, custom icon, and an option toggle.

Namespace: DataTools.MessageBoxEx
Assembly: MessageBoxEx (in MessageBoxEx.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static MessageBoxExResult Show(
	string message,
	string title,
	string optionText,
	IEnumerable<MessageBoxExButton> buttons,
	MessageBoxExIcons icon,
	out Object customResult,
	out bool optionResult
)

VB

Public Shared Function Show ( 
	message As String,
	title As String,
	optionText As String,
	buttons As IEnumerable(Of MessageBoxExButton),
	icon As MessageBoxExIcons,
	<OutAttribute> ByRef customResult As Object,
	<OutAttribute> ByRef optionResult As Boolean
) As MessageBoxExResult

Parameters

 

message
Type: System.String
Text to display in the dialog box
title
Type: System.String
Title of the dialog box
optionText
Type: System.String
Text of the option checkbox
buttons
Type: System.Collections.Generic.IEnumerable(MessageBoxExButton)
An IEnumerable(T) of MessageBoxExButton objects
icon
Type: DataTools.MessageBoxEx.MessageBoxExIcons
A standard MessageBoxExIcons value
customResult
Type: System.Object
The result of the button that was pressed
optionResult
Type: System.Boolean
The result of the option toggle

Return Value

Type: MessageBoxExResult
A MessageBoxExResult value

See Also

Reference

MessageBoxEx Class
Show Overload
DataTools.MessageBoxEx Namespace

Clone this wiki locally