mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 17:16:03 +02:00
* 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
1.2 KiB
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 |
|
|
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]