1

The below 1st command displays msg along with title as PPFC. I'm trying to fetch those info from db. The 2nd command shows that I'm able to get the msg from db but I couldn't set title from db column. Instead of "PPFC" I'm tring to put resulterr[2].SCREEN_NM.ToString() so that it fetches and displays in title.

1) MessageBox.Show("PLEASE SELECT A VALUE FROM DIVISION DROPDOWN","PPFC");

2) MessageBox.Show(resulterr[2].ERROR_MESSAGE_TEMPLATE.ToString() + ", " + resulterr[2].SCREEN_NM.ToString(), "PPFC", MessageBoxButtons.OK, MessageBoxIcon.Information);

1
  • 1
    What language is this? C#?
    – Codor
    Jul 16, 2015 at 9:13

1 Answer 1

0

According to this documentation, the overloaded method

MessageBox.Show(String,String);

can be used to specify the caption in addition to the actual message. If more details of the message box have to be specified, this overload can be used.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.