Skip to content

MessageBox

Summary

A message dialog window that you can use to show a message with buttons

Signature

1
public static class MessageBox

Namespace

cAlgo.API

Methods

Show (10)

Show (1 of 10)

Summary

Shows a MessageBox with just a text

Signature

1
public static MessageBoxResult Show(string messageBoxText)

Parameters

Name Type Description
messageBoxText string The text that will be displayed on MessageBox

Return Value

MessageBoxResult

Show (2 of 10)

Summary

Shows a MessageBox with text and caption / title

Signature

1
public static MessageBoxResult Show(string messageBoxText, string caption)

Parameters

Name Type Description
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar

Return Value

MessageBoxResult

Show (3 of 10)

Summary

Shows a MessageBox with text, caption / title, and button

Signature

1
public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button)

Parameters

Name Type Description
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar
button MessageBoxButton The button that will be displayed on MessageBox

Return Value

MessageBoxResult

Show (4 of 10)

Summary

Shows a MessageBox with text, caption / title, button, and an image icon

Signature

1
public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon)

Parameters

Name Type Description
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar
button MessageBoxButton The button that will be displayed on MessageBox
icon MessageBoxImage The icon that will be displayed on MessageBox

Return Value

MessageBoxResult

Show (5 of 10)

Summary

Shows a MessageBox with text, caption / title, button, icon, and a default result

Signature

1
public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult)

Parameters

Name Type Description
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar
button MessageBoxButton The button that will be displayed on MessageBox
icon MessageBoxImage The icon that will be displayed on MessageBox
defaultResult MessageBoxResult The MessageBox default result

Return Value

MessageBoxResult

Show (6 of 10)

Summary

Shows a MessageBox with text that is a child of another window

Signature

1
public static MessageBoxResult Show(Window owner, string messageBoxText)

Parameters

Name Type Description
owner Window The window that owns the MessageBox
messageBoxText string The text that will be displayed on MessageBox

Return Value

MessageBoxResult

Show (7 of 10)

Summary

Shows a MessageBox with text, and caption / title that is a child of another window

Signature

1
public static MessageBoxResult Show(Window owner, string messageBoxText, string caption)

Parameters

Name Type Description
owner Window The window that owns the MessageBox
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar

Return Value

MessageBoxResult

Show (8 of 10)

Summary

Shows a MessageBox with text, caption / title, and button that is a child of another window

Signature

1
public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button)

Parameters

Name Type Description
owner Window The window that owns the MessageBox
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar
button MessageBoxButton The button that will be displayed on MessageBox

Return Value

MessageBoxResult

Show (9 of 10)

Summary

Shows a MessageBox with text, caption / title, button, and image icon that is a child of another window

Signature

1
public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon)

Parameters

Name Type Description
owner Window The window that owns the MessageBox
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar
button MessageBoxButton The button that will be displayed on MessageBox
icon MessageBoxImage The icon that will be displayed on MessageBox

Return Value

MessageBoxResult

Show (10 of 10)

Summary

Shows a MessageBox with text, caption / title, button, icon, and a default result that is a child of another window

Signature

1
public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult)

Parameters

Name Type Description
owner Window The window that owns the MessageBox
messageBoxText string The text that will be displayed on MessageBox
caption string The caption that will be displayed on MessageBox tile bar
button MessageBoxButton The button that will be displayed on MessageBox
icon MessageBoxImage The icon that will be displayed on MessageBox
defaultResult MessageBoxResult The MessageBox default result

Return Value

MessageBoxResult