T
tiger
Hi,
I am runing into problems with the following code, What I am trying to do is
display the object (sb) in a textBox, rather than MessageBox. This is even
possible?
StringBuilder sb = new StringBuilder();
sb.Append("Payment paid to: " + myPayment.Payor);
sb.Append("\n");
sb.Append("Paid by: " + myPayment.Payee);
sb.Append("\n");
sb.Append("Amount: $" + myPayment.Amount.ToString());
sb.Append("\n");
sb.Append("Due Date: " + Convert.ToDateTime(myPayment.DueDate));
MessageBox.Show(sb.ToString(), "Message Received!");
Your assistants will be greatly appreciated.
Thanks
tiger
I am runing into problems with the following code, What I am trying to do is
display the object (sb) in a textBox, rather than MessageBox. This is even
possible?
StringBuilder sb = new StringBuilder();
sb.Append("Payment paid to: " + myPayment.Payor);
sb.Append("\n");
sb.Append("Paid by: " + myPayment.Payee);
sb.Append("\n");
sb.Append("Amount: $" + myPayment.Amount.ToString());
sb.Append("\n");
sb.Append("Due Date: " + Convert.ToDateTime(myPayment.DueDate));
MessageBox.Show(sb.ToString(), "Message Received!");
Your assistants will be greatly appreciated.
Thanks
tiger