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