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