There is no overload that outputs formatted output for a class MessageBox. Use String.Format()to get a formatted string.
MessageBox.Show(String.Format("First Name,{0}", textBox1.Text));
To display a message box with a header, use overload MessageBox.Show(string, string). The first argument is the message, and the second is the signature.
MessageBox.Show(String.Format("First Name,{0}", textBox1.Text),
textBox1.Text);
source
share