DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   

How to add new/multi line text in WPF MessageBox

By Ashok Nalam on 24 Jan 2014 | Category: WPF | Tagged: xaml .NET C# 
  Discuss Add Comment   |  
Add rating Rate this resource   

In-order to add new line in MessageBox.Show Text use following code
string messageText = "Text1" + System.Environment.NewLine + "Text2";

Example:

MessageBox.Show("DotNetMirror" + System.Environment.NewLine + "WPF MessageBox.Show Text New Line Demo", "Information", MessageBoxButton.OK);
wpf messagebox multi line text
  Discuss Add Comment    
Add rating Rate this resource   
About the Contributor
Member Since : 10 Dec 2012
Member Points (Level) : 9526  (Professional)
Location : INDIA
Home Page : http://dotnetmirror.com
About : I am admin of this site.
Rate this resource
 
Add your Comment
Name Email WebSite
Captcha Refresh


Comments (0)
No comments found, click here to add comment.
 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys