それぞれの合計をボックス内の別の行に表示したいが、現時点ではそれは重複している。 誰かが私に方法を教えてもらえますか?メッセージボックスのテキストを異なる行に表示する方法は?
これは新しい行は含まれません表示private void SummaryButton_Click(object sender, EventArgs e)
{
TotalMoniesTaken = AmountDue + TotalMoniesTaken;
TotalGuests = NumberOfGuests + TotalGuests;
TotalLunchBookings = NumberOfGuests + TotalLunchBookings;
TotalEarlyBookings = NumberOfGuests + TotalEarlyBookings;
TotalLateBookings = NumberOfGuests + TotalLateBookings;
TotalCornerTables = NumberOfGuests + TotalCornerTables;
TotalWaiters = NumberOfGuests + TotalWaiters;
MessageBox.Show("Total Monies Taken is €" + TotalMoniesTaken +
"Total Number of Bookings = " + TotalGuests +
"Total Lunch Bookings = " + TotalLunchBookings +
"Total Early Bookings = " + TotalEarlyBookings +
"Total Late Bookings = " + TotalLateBookings +
"Total Corner Tables = " + TotalCornerTables +
"Total Waiters = " + TotalWaiters);
}
[ '\ nを入れて'](http://stackoverflow.com/questions/1015766/difference-between-n-and-environment-newline)そこに? – GolezTrol