Files
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.2 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Open a Message Box 03/30/2017
csharp
vb
message boxes [WPF], opening
opening message boxes [WPF]
acaad17f-af43-4eca-a004-f1c9e7c6f292

How to: Open a Message Box

This example shows how to open a message box.

Example

A message box is a prefabricated modal dialog box for displaying information to users. A message box is opened by calling the static xref:System.Windows.MessageBox.Show%2A method of the xref:System.Windows.MessageBox class. When xref:System.Windows.MessageBox.Show%2A is called, the message is passed using a string parameter. Several overloads of xref:System.Windows.MessageBox.Show%2A allow you to configure how a message box will appear (see xref:System.Windows.MessageBox).

[!code-csharpMessageBoxSnippets#MessageBoxShow1CODE] [!code-vbMessageBoxSnippets#MessageBoxShow1CODE]

See also