c# messagebox new line code example Example: c# new line in messagebox string msg = "Text here" + Environment.NewLine + "some other text";